mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fixed bug am40911 (round kill stats persisting for spectators)
This commit is contained in:
parent
647d226764
commit
44617778c7
@ -1420,7 +1420,15 @@ kill_stats(id)
|
||||
// Bail out if user stats timer is non-zero,
|
||||
// ie function already called.
|
||||
if (g_fzShowUserStatsTime[id] > 0.0)
|
||||
{
|
||||
return
|
||||
}
|
||||
|
||||
new team = get_user_team(id)
|
||||
if (team < 1 || team > 2)
|
||||
{
|
||||
return
|
||||
}
|
||||
|
||||
// Flag kill stats displayed for this player.
|
||||
g_fzShowUserStatsTime[id] = get_gametime()
|
||||
@ -1546,8 +1554,10 @@ endround_stats()
|
||||
id = iaPlayers[iPlayer]
|
||||
|
||||
if (g_fzShowUserStatsTime[id] == 0.0)
|
||||
{
|
||||
kill_stats(id)
|
||||
}
|
||||
}
|
||||
|
||||
g_sAwardAndScore[0] = 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user