From: Lyberta Date: Sat, 17 Feb 2018 16:47:39 +0000 (+0300) Subject: Survival: Use more STAT. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a1059601d31ea4544f183db268b020e65d8670c1;p=xonotic%2Fxonotic-data.pk3dir.git Survival: Use more STAT. --- diff --git a/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc b/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc index 28fd01ac3f..d4d33925ac 100644 --- a/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc +++ b/qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc @@ -811,8 +811,8 @@ void Surv_UpdateTeamStats() } FOREACH_CLIENT(IS_REAL_CLIENT(it), { - it.yellowalive_stat = yellowalive; - it.pinkalive_stat = pinkalive; + STAT(YELLOWALIVE, it) = yellowalive; + STAT(PINKALIVE, it) = pinkalive; }); } @@ -999,8 +999,8 @@ void Surv_UpdateAliveStats() FOREACH_CLIENT(IS_REAL_CLIENT(it), { STAT(SURV_DEFENDERS_ALIVE, it) = surv_numdefendersalive; - it.redalive_stat = redalive; - it.bluealive_stat = bluealive; + STAT(REDALIVE, it) = redalive; + STAT(BLUEALIVE, it) = bluealive; }); Surv_UpdateDefenderHealthStat(); } @@ -1821,10 +1821,10 @@ MUTATOR_HOOKFUNCTION(surv, ClientConnect) { STAT(SURV_DEFENDER_TEAM, player) = Team_TeamToNumber(surv_defenderteam); STAT(SURV_DEFENDERS_ALIVE, player) = surv_numdefendersalive; - player.redalive_stat = redalive; - player.bluealive_stat = bluealive; - player.yellowalive_stat = yellowalive; - player.pinkalive_stat = pinkalive; + STAT(REDALIVE, player) = redalive; + STAT(BLUEALIVE, player) = bluealive; + STAT(YELLOWALIVE, player) = yellowalive; + STAT(PINKALIVE, player) = pinkalive; } if (player.surv_role == SURVIVAL_ROLE_NONE) {