Revert "- Duke: Remove left-over line." and re-do as a multiplier of TICSPERFRAME for better clarity as to what's happening rather than a bit-shift.

* It's also better that everything be based off the one tic clock and not call `I_GetBuildTime()` to set `gameclock`. This also ensures that `gameclock` always increases in intervals of 4.

This reverts commit 63eac13d6442357fdab57067ec913a2ce8ce72db.
This commit is contained in:
Mitchell Richters 2020-08-25 19:16:16 +10:00 committed by Christoph Oelckers
parent be5419e77c
commit e9c0831ccc

View file

@ -328,11 +328,11 @@ bool GameTicker()
gameupdatetime.Clock();
int const currentTic = I_GetTime();
gameclock = I_GetBuildTime();
if (playrunning() && currentTic - lastTic >= 1)
{
lastTic = currentTic;
gameclock = currentTic * TICSPERFRAME;
GetInput();
auto const pPlayer = &ps[myconnectindex];