mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
Fix 1-frame background glitch when returning from in-game options
The background would change for 1 frame before sending you back to the pause menu or editor settings. The map.nexttowercolour() call needs to be deferred until the end of the frame.
This commit is contained in:
parent
5088ff40e9
commit
951679b1f8
2 changed files with 7 additions and 2 deletions
|
@ -6632,6 +6632,11 @@ static void returntoedsettings(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void nextbgcolor(void)
|
||||||
|
{
|
||||||
|
map.nexttowercolour();
|
||||||
|
}
|
||||||
|
|
||||||
void Game::returntoingame(void)
|
void Game::returntoingame(void)
|
||||||
{
|
{
|
||||||
ingame_titlemode = false;
|
ingame_titlemode = false;
|
||||||
|
@ -6655,6 +6660,7 @@ void Game::returntoingame(void)
|
||||||
obj.flags[73] = true;
|
obj.flags[73] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DEFER_CALLBACK(nextbgcolor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::unlockAchievement(const char *name) {
|
void Game::unlockAchievement(const char *name) {
|
||||||
|
|
|
@ -1638,11 +1638,10 @@ void titleinput(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
game.returnmenu();
|
game.returnmenu();
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
map.nexttowercolour();
|
map.nexttowercolour();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(game.menustart)
|
if(game.menustart)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue