0
0
Fork 0
mirror of https://github.com/ZDoom/gzdoom-gles.git synced 2025-02-27 13:41:06 +00:00

- 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" uint64_t I_msTimeFS() // from "start"
{ {
return NSToMS(I_nsTime() - FirstFrameStartTime); return (FirstFrameStartTime == 0) ? 0 : NSToMS(I_nsTime() - FirstFrameStartTime);
} }
int I_GetTime() int I_GetTime()