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

Don't process music, fades, or timer when unfocused

This fixes being able to make music fully fade in (or out) by unfocusing
the game, or making the fade bars fully fade in (or out) by unfocusing
the game, or racking up the timer while the game is unfocused.
This commit is contained in:
Misa 2021-04-13 14:42:45 -07:00 committed by Ethan Lee
parent 01ba834086
commit ea2ecc81b1

View file

@ -728,7 +728,9 @@ static void focused_begin(void)
static void focused_end(void)
{
/* no-op. */
game.gameclock();
music.processmusic();
graphics.processfade();
}
static enum LoopCode loop_end(void)
@ -789,9 +791,5 @@ static enum LoopCode loop_end(void)
gameScreen.ResizeScreen(-1, -1);
}
music.processmusic();
graphics.processfade();
game.gameclock();
return Loop_continue;
}