mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Fixed tics to seconds conversion, now in ZScript
Stat screens display correct time values
This commit is contained in:
parent
205c64d4b1
commit
35dbe965e1
1 changed files with 1 additions and 2 deletions
|
@ -417,8 +417,7 @@ class Thinker : Object native play
|
||||||
|
|
||||||
static clearscope int Tics2Seconds(int tics)
|
static clearscope int Tics2Seconds(int tics)
|
||||||
{
|
{
|
||||||
// This compensates for one tic being slightly less than 1/35 of a second.
|
return int(tics / TICRATE);
|
||||||
return int(tics * (0.98 / TICRATE));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue