From 5143cada8ef1549bc8645dc82b2fd5300b08a47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Gr=C3=BCnbacher?= Date: Thu, 1 May 2014 15:19:00 +0200 Subject: [PATCH] StatsX: Don't format roundend hudstats if we don't show them --- plugins/cstrike/statsx.sma | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index f2cb2862..8102dd7d 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1399,8 +1399,12 @@ public delay_resethud(args[]) #endif fGameTime = get_gametime() show_user_hudstats(id, fGameTime) - format_roundend_hudstats(id, g_sAwardAndScore) - show_roundend_hudstats(id, fGameTime, g_sAwardAndScore) + + if (g_izStatsSwitch[id] && g_sAwardAndScore[0]) + { + format_roundend_hudstats(id, g_sAwardAndScore) + show_roundend_hudstats(id, fGameTime, g_sAwardAndScore) + } // Reset round stats g_izKilled[id][KILLED_KILLER_ID] = 0 @@ -1600,6 +1604,9 @@ endround_stats() kill_stats(id) } + if (!g_izStatsSwitch[id]) + continue + format_roundend_hudstats(id, g_sAwardAndScore) show_roundend_hudstats(id, 0.0, g_sAwardAndScore) }