mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user