- levelclock increment after tick.

This ensures that the first tick always gets a value of 0.
This commit is contained in:
Christoph Oelckers 2020-08-31 19:21:02 +02:00
parent bf4f538c61
commit 9a208185d6

View file

@ -62,7 +62,6 @@ void GameInterface::Ticker()
if (playrunning()) if (playrunning())
{ {
ud.levelclock+= 4;
if (earthquaketime > 0) earthquaketime--; if (earthquaketime > 0) earthquaketime--;
ud.camerasprite = -1; ud.camerasprite = -1;
@ -100,6 +99,8 @@ void GameInterface::Ticker()
dotorch(); dotorch();
r_NoInterpolate = false; r_NoInterpolate = false;
ud.levelclock+= 4; // This must be at the end of this block so that the first tic receives a value of 0!
} }
else r_NoInterpolate = true; else r_NoInterpolate = true;