- fixed: if the level is started before the first timer call, pass an earlier timestamp to screen->FrameTime

This commit is contained in:
Rachael Alexanderson 2017-12-09 06:09:39 -05:00
parent e3ba9567c9
commit eb5da3e641

View file

@ -166,7 +166,7 @@ uint64_t I_msTime()
uint64_t I_msTimeFS() // from "start"
{
return NSToMS(I_nsTime() - FirstFrameStartTime);
return (FirstFrameStartTime == 0) ? 0 : NSToMS(I_nsTime() - FirstFrameStartTime);
}
int I_GetTime()