1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02: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;
DEFER_CALLBACK(setflipmode);
DEFER_CALLBACK(setfademode);
if (!map.custommode && !graphics.flipmode)
if (!map.custommode && !graphics.setflipmode)
{
obj.flags[73] = true;
}