mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-17 17:41:23 +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_items[0] = Plrs[me].sitems;
|
||||||
cnt_secret[0] = Plrs[me].ssecret;
|
cnt_secret[0] = Plrs[me].ssecret;
|
||||||
cnt_time = Thinker.Tics2Seconds(Plrs[me].stime);
|
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);
|
cnt_total_time = Thinker.Tics2Seconds(wbs.totaltime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ class DoomStatusScreen : StatusScreen
|
||||||
if (!intermissioncounter || cnt_total_time >= tsec)
|
if (!intermissioncounter || cnt_total_time >= tsec)
|
||||||
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)
|
if (!intermissioncounter || cnt_par >= psec)
|
||||||
{
|
{
|
||||||
cnt_par = psec;
|
cnt_par = psec;
|
||||||
|
|
Loading…
Reference in a new issue