From 7298ba270781226cbe6116c3dee8fc58f139fbd5 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 13 May 2019 11:04:55 +0300 Subject: [PATCH] - do not show par time when it's zero https://forum.zdoom.org/viewtopic.php?t=64551 --- wadsrc/static/zscript/ui/statscreen/statscreen_sp.zs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/ui/statscreen/statscreen_sp.zs b/wadsrc/static/zscript/ui/statscreen/statscreen_sp.zs index 479c2e5ab..73bc433e4 100644 --- a/wadsrc/static/zscript/ui/statscreen/statscreen_sp.zs +++ b/wadsrc/static/zscript/ui/statscreen/statscreen_sp.zs @@ -197,7 +197,11 @@ class DoomStatusScreen : StatusScreen { drawTimeFont (printFont, 160 - SP_TIMEX, SP_TIMEY + lh, cnt_total_time, tcolor); } - drawTimeFont (printFont, 320 - SP_TIMEX, SP_TIMEY, cnt_par, tcolor); + + if (wbs.partime) + { + drawTimeFont (printFont, 320 - SP_TIMEX, SP_TIMEY, cnt_par, tcolor); + } } }