From: terencehill Date: Mon, 2 Jan 2012 20:27:37 +0000 (+0100) Subject: Add a check X-Git-Tag: xonotic-v0.6.0~42^2~7^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79f0fbc33cd35f246095b453d6a199a3648432d2;p=xonotic%2Fxonotic-data.pk3dir.git Add a check --- diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc index 2f85d0d712..930ed869af 100644 --- a/qcsrc/server/arena.qc +++ b/qcsrc/server/arena.qc @@ -272,10 +272,12 @@ void Arena_Warmup() if(g_ca) ca_teams_ok = (red_players && blue_players); // teams are ok if there's at least 1 player in each team - FOR_EACH_PLAYER(e) - { - if(e.health > 0 && e.movetype == MOVETYPE_NONE) - e.movetype = MOVETYPE_WALK; + if(g_arena) { + FOR_EACH_PLAYER(e) + { + if(e.health > 0 && e.movetype == MOVETYPE_NONE) + e.movetype = MOVETYPE_WALK; + } } }