1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix not-Flip-Mode flag turning off when returning from options menu

We need to check for graphics.setflipmode, not graphics.flipmode,
because graphics.flipmode only gets assigned at the end of the frame
(due to the deferred callback). Otherwise, returning from the options
menu would always turn flag 73 on, which would make you ineligible to
get the Flip Mode trophy, even if you're in Flip Mode.
This commit is contained in:
Misa 2021-08-31 15:33:20 -07:00
parent b132f4fc6c
commit 416fe00c9d

View file

@ -6873,7 +6873,7 @@ void Game::returntoingame(void)
gamestate = MAPMODE; gamestate = MAPMODE;
DEFER_CALLBACK(setflipmode); DEFER_CALLBACK(setflipmode);
DEFER_CALLBACK(setfademode); DEFER_CALLBACK(setfademode);
if (!map.custommode && !graphics.flipmode) if (!map.custommode && !graphics.setflipmode)
{ {
obj.flags[73] = true; obj.flags[73] = true;
} }