From: FruitieX Date: Tue, 30 Nov 2010 16:11:18 +0000 (+0200) Subject: fix when to allow arena players to move again, also fix round countdown centerprints... X-Git-Tag: xonotic-v0.1.0preview~86^2^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ce3028fdf32be62e7645dbd1bfadc3a2219e260;p=xonotic%2Fxonotic-data.pk3dir.git fix when to allow arena players to move again, also fix round countdown centerprints so they are printed to every player (ps. all of this arena code is a HUGE MESS and needs fixing, but I don't want to touch it too much before the beta) --- diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc index 12f25fad5..1f9437e68 100644 --- a/qcsrc/server/arena.qc +++ b/qcsrc/server/arena.qc @@ -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()