mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +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:
parent
e3ba9567c9
commit
eb5da3e641
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue