1
0
Fork 0
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:
Info Teddy 2020-02-03 19:06:09 -08:00 committed by Ethan Lee
parent 4e378b6057
commit e3025a6b27

View file

@ -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)