StatsX: Don't format roundend hudstats if we don't show them

This commit is contained in:
Valentin Grünbacher 2014-05-01 15:19:00 +02:00
parent f630a8afc8
commit 5143cada8e

View File

@ -1399,8 +1399,12 @@ public delay_resethud(args[])
#endif
fGameTime = get_gametime()
show_user_hudstats(id, fGameTime)
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)
}