mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Render screen shaking in towers
It's really obvious that screen shaking is not processed in towers if you bring up the pause menu then quickly quicksave and bring it back down. The screen won't shake, but it will suddenly start shaking if you exit the tower, finishing off the stalled screenshake timer.
This commit is contained in:
parent
4e378b6057
commit
e3025a6b27
1 changed files with 9 additions and 1 deletions
|
@ -2933,7 +2933,15 @@ void towerrender(Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, U
|
||||||
dwgfx.flashlight();
|
dwgfx.flashlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (game.screenshake > 0 && !game.noflashingmode)
|
||||||
|
{
|
||||||
|
game.screenshake--;
|
||||||
|
dwgfx.screenshake();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
dwgfx.render();
|
dwgfx.render();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void teleporterrender(Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, UtilityClass& help)
|
void teleporterrender(Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, UtilityClass& help)
|
||||||
|
|
Loading…
Reference in a new issue