]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a check
authorterencehill <piuntn@gmail.com>
Mon, 2 Jan 2012 20:27:37 +0000 (21:27 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 2 Jan 2012 20:27:37 +0000 (21:27 +0100)
qcsrc/server/arena.qc

index 2f85d0d7128ed1268e002ba0d925dac631d93419..930ed869afafabf5a5b8abd6caccb0c8ac8240d6 100644 (file)
@@ -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;
+                       }
                }
        }