From 4ce3028fdf32be62e7645dbd1bfadc3a2219e260 Mon Sep 17 00:00:00 2001 From: FruitieX Date: Tue, 30 Nov 2010 18:11:18 +0200 Subject: [PATCH] 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) --- qcsrc/server/arena.qc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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() -- 2.39.2