mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
Par time on stat screen doesn't need tics-to-seconds adjustment
Fixes https://forum.zdoom.org/viewtopic.php?t=56307 There was no such adjustment before scriptification of stat screen
This commit is contained in:
parent
1cb8d80b25
commit
78b724e280
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class DoomStatusScreen : StatusScreen
|
|||
cnt_items[0] = Plrs[me].sitems;
|
||||
cnt_secret[0] = Plrs[me].ssecret;
|
||||
cnt_time = Thinker.Tics2Seconds(Plrs[me].stime);
|
||||
cnt_par = Thinker.Tics2Seconds(wbs.partime);
|
||||
cnt_par = wbs.partime / Thinker.TICRATE;
|
||||
cnt_total_time = Thinker.Tics2Seconds(wbs.totaltime);
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ class DoomStatusScreen : StatusScreen
|
|||
if (!intermissioncounter || cnt_total_time >= tsec)
|
||||
cnt_total_time = tsec;
|
||||
|
||||
int psec = Thinker.Tics2Seconds(wbs.partime);
|
||||
int psec = wbs.partime / Thinker.TICRATE;
|
||||
if (!intermissioncounter || cnt_par >= psec)
|
||||
{
|
||||
cnt_par = psec;
|
||||
|
|
Loading…
Reference in a new issue