Update statsx.sma

This commit is contained in:
9iky6 2014-07-26 20:56:42 +06:00
parent fec17e2bf5
commit 6ae11ed755

View File

@ -513,7 +513,7 @@ add_most_disruptive(id, sBuffer[MAX_BUFFER_LENGTH + 1])
iMaxHeadShots = 0 iMaxHeadShots = 0
// Find player. // Find player.
for (iPlayer = 1; iPlayer < MaxClients; iPlayer++) for (iPlayer = 1; iPlayer <= MaxClients; iPlayer++)
{ {
if (g_izUserRndStats[iPlayer][STATS_DAMAGE] >= iMaxDamage && (g_izUserRndStats[iPlayer][STATS_DAMAGE] > iMaxDamage || g_izUserRndStats[iPlayer][STATS_HS] > iMaxHeadShots)) if (g_izUserRndStats[iPlayer][STATS_DAMAGE] >= iMaxDamage && (g_izUserRndStats[iPlayer][STATS_DAMAGE] > iMaxDamage || g_izUserRndStats[iPlayer][STATS_HS] > iMaxHeadShots))
{ {
@ -549,7 +549,7 @@ add_best_score(id, sBuffer[MAX_BUFFER_LENGTH + 1])
iMaxHeadShots = 0 iMaxHeadShots = 0
// Find player // Find player
for (iPlayer = 1; iPlayer < MaxClients; iPlayer++) for (iPlayer = 1; iPlayer <= MaxClients; iPlayer++)
{ {
if (g_izUserRndStats[iPlayer][STATS_KILLS] >= iMaxKills && (g_izUserRndStats[iPlayer][STATS_KILLS] > iMaxKills || g_izUserRndStats[iPlayer][STATS_HS] > iMaxHeadShots)) if (g_izUserRndStats[iPlayer][STATS_KILLS] >= iMaxKills && (g_izUserRndStats[iPlayer][STATS_KILLS] > iMaxKills || g_izUserRndStats[iPlayer][STATS_HS] > iMaxHeadShots))
{ {