mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix 1-frame glitch returning from in-game options with Flip Mode on
If you had Flip Mode enabled when exiting from in-game options, the game would flash the in-game options menu as flipped for 1 frame before returning to the pause menu. To fix this, just defer the Flip Mode variable assignment to be done at the end of the frame.
This commit is contained in:
parent
673699cef5
commit
21dc90dd0e
1 changed files with 6 additions and 1 deletions
|
@ -6725,6 +6725,11 @@ static void setfademode(void)
|
|||
graphics.fademode = graphics.ingame_fademode;
|
||||
}
|
||||
|
||||
static void setflipmode(void)
|
||||
{
|
||||
graphics.flipmode = graphics.setflipmode;
|
||||
}
|
||||
|
||||
void Game::returntoingame(void)
|
||||
{
|
||||
ingame_titlemode = false;
|
||||
|
@ -6742,7 +6747,7 @@ void Game::returntoingame(void)
|
|||
{
|
||||
DEFER_CALLBACK(returntoingametemp);
|
||||
gamestate = MAPMODE;
|
||||
graphics.flipmode = graphics.setflipmode;
|
||||
DEFER_CALLBACK(setflipmode);
|
||||
DEFER_CALLBACK(setfademode);
|
||||
if (!map.custommode && !graphics.flipmode)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue