]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix when to allow arena players to move again, also fix round countdown centerprints...
authorFruitieX <fruitiex@gmail.com>
Tue, 30 Nov 2010 16:11:18 +0000 (18:11 +0200)
committerFruitieX <fruitiex@gmail.com>
Tue, 30 Nov 2010 16:11:18 +0000 (18:11 +0200)
qcsrc/server/arena.qc

index 12f25fad50c26d31204b84510628a9d81ea99e37..1f9437e6870fb911f56da8525e281ddeb1b316b4 100644 (file)
@@ -245,7 +245,9 @@ void Arena_Warmup()
                        else if(f == 1)
                                Announce("1");
 
-                       centerprint(self, msg);
+            entity e;
+            FOR_EACH_PLAYER(e)
+                centerprint(e, msg);
                }
 
                if (g_arena) {
@@ -268,13 +270,15 @@ void Arena_Warmup()
                if(g_ca) {
                        ca_players = 0;
 
-                       FOR_EACH_PLAYER(self)
+            local entity oldself;
+            oldself = self;
                                ca_players += 1;
+            self = oldself;
                }
-       }
 
-       if(self.classname == "player" && self.health > 0 && self.movetype == MOVETYPE_NONE)
-               self.movetype = MOVETYPE_WALK;
+        if(self.classname == "player" && self.health > 0 && self.movetype == MOVETYPE_NONE)
+            self.movetype = MOVETYPE_WALK;
+       }
 }
 
 void count_spawned_players()