From 79f0fbc33cd35f246095b453d6a199a3648432d2 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 2 Jan 2012 21:27:37 +0100 Subject: [PATCH] Add a check --- qcsrc/server/arena.qc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc index 2f85d0d71..930ed869a 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; + } } } -- 2.39.2