From 78b724e2809bd11fd32f6bb9f5dcb9d0c9774129 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 7 May 2017 10:10:26 +0300 Subject: [PATCH] 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 --- wadsrc/static/zscript/statscreen/statscreen_sp.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/statscreen/statscreen_sp.txt b/wadsrc/static/zscript/statscreen/statscreen_sp.txt index c0af25990..960334613 100644 --- a/wadsrc/static/zscript/statscreen/statscreen_sp.txt +++ b/wadsrc/static/zscript/statscreen/statscreen_sp.txt @@ -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;