From af8cfd81212b249bea4e3602690c4c646f564c04 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 23 Feb 2013 16:10:01 +0100 Subject: [PATCH] Fix console warning when generator of a team with a bot is not shielded (bots don't like the alarm sound) --- qcsrc/server/mutators/gamemode_onslaught.qc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcsrc/server/mutators/gamemode_onslaught.qc b/qcsrc/server/mutators/gamemode_onslaught.qc index c14817e85..318c2b24e 100644 --- a/qcsrc/server/mutators/gamemode_onslaught.qc +++ b/qcsrc/server/mutators/gamemode_onslaught.qc @@ -417,19 +417,19 @@ void onslaught_generator_think() } else if (overtime_msg_time) overtime_msg_time = 0; - + if(!self.isshielded && self.wait < time) { self.wait = time + 5; - FOR_EACH_PLAYER(e) + FOR_EACH_REALPLAYER(e) { if(e.team == self.team) { centerprint(e, "^1Your generator is NOT shielded!\n^7Re-capture controlpoints to shield it!"); soundto(MSG_ONE, e, CHAN_AUTO, "kh/alarm.wav", VOL_BASE, ATTN_NONE); // FIXME: Uniqe sound? - } - } - } + } + } + } } } -- 2.39.2