mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
StatsX: Don't format roundend hudstats if we don't show them
This commit is contained in:
parent
f630a8afc8
commit
5143cada8e
@ -1399,8 +1399,12 @@ public delay_resethud(args[])
|
|||||||
#endif
|
#endif
|
||||||
fGameTime = get_gametime()
|
fGameTime = get_gametime()
|
||||||
show_user_hudstats(id, fGameTime)
|
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
|
// Reset round stats
|
||||||
g_izKilled[id][KILLED_KILLER_ID] = 0
|
g_izKilled[id][KILLED_KILLER_ID] = 0
|
||||||
@ -1600,6 +1604,9 @@ endround_stats()
|
|||||||
kill_stats(id)
|
kill_stats(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!g_izStatsSwitch[id])
|
||||||
|
continue
|
||||||
|
|
||||||
format_roundend_hudstats(id, g_sAwardAndScore)
|
format_roundend_hudstats(id, g_sAwardAndScore)
|
||||||
show_roundend_hudstats(id, 0.0, g_sAwardAndScore)
|
show_roundend_hudstats(id, 0.0, g_sAwardAndScore)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user