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:
alexey.lysiuk 2017-05-07 10:10:26 +03:00
parent 1cb8d80b25
commit 78b724e280
1 changed files with 2 additions and 2 deletions

View File

@ -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;