mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09: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:
parent
01ba834086
commit
ea2ecc81b1
1 changed files with 3 additions and 5 deletions
|
@ -728,7 +728,9 @@ static void focused_begin(void)
|
||||||
|
|
||||||
static void focused_end(void)
|
static void focused_end(void)
|
||||||
{
|
{
|
||||||
/* no-op. */
|
game.gameclock();
|
||||||
|
music.processmusic();
|
||||||
|
graphics.processfade();
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum LoopCode loop_end(void)
|
static enum LoopCode loop_end(void)
|
||||||
|
@ -789,9 +791,5 @@ static enum LoopCode loop_end(void)
|
||||||
gameScreen.ResizeScreen(-1, -1);
|
gameScreen.ResizeScreen(-1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
music.processmusic();
|
|
||||||
graphics.processfade();
|
|
||||||
game.gameclock();
|
|
||||||
|
|
||||||
return Loop_continue;
|
return Loop_continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue