From: terencehill Date: Sat, 23 Feb 2013 15:10:01 +0000 (+0100) Subject: Fix console warning when generator of a team with a bot is not shielded (bots don... X-Git-Tag: xonotic-v0.7.0~62^2~20^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af8cfd81212b249bea4e3602690c4c646f564c04;p=xonotic%2Fxonotic-data.pk3dir.git Fix console warning when generator of a team with a bot is not shielded (bots don't like the alarm sound) --- 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? - } - } - } + } + } + } } }