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:
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"
|
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()
|
||||||
|
|
Loading…
Reference in a new issue