diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 15a9bc63c..84a227418 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -624,8 +624,8 @@ static void checkCrouchToggle(player_struct* p) int getticssincelastupdate() { - int tics = lastcontroltime == 0 || gameclock < lastcontroltime ? 0 : gameclock - lastcontroltime; - lastcontroltime = gameclock; + int tics = lastcontroltime == 0 || ud.levelclock < lastcontroltime ? 0 : ud.levelclock - lastcontroltime; + lastcontroltime = ud.levelclock; return tics; }