mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -2933,7 +2933,15 @@ void towerrender(Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, U
|
||||
dwgfx.flashlight();
|
||||
}
|
||||
|
||||
dwgfx.render();
|
||||
if (game.screenshake > 0 && !game.noflashingmode)
|
||||
{
|
||||
game.screenshake--;
|
||||
dwgfx.screenshake();
|
||||
}
|
||||
else
|
||||
{
|
||||
dwgfx.render();
|
||||
}
|
||||
}
|
||||
|
||||
void teleporterrender(Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, UtilityClass& help)
|
||||
|
||||
Reference in New Issue
Block a user