From: terencehill Date: Thu, 20 Oct 2016 13:52:43 +0000 (+0200) Subject: Onslaught: get rid of an error message when round restart X-Git-Tag: xonotic-v0.8.2~491 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=77ba5a1b3592bd37ea7cfd030d299b4e5c2ccbc7;p=xonotic%2Fxonotic-data.pk3dir.git Onslaught: get rid of an error message when round restart --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index a18ce34c5..c2b865f79 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -926,7 +926,8 @@ void ons_GeneratorReset(entity this) this.lasthealth = this.max_health = this.health = autocvar_g_onslaught_gen_health; this.takedamage = DAMAGE_AIM; this.bot_attack = true; - IL_PUSH(g_bot_targets, this); + if(!IL_CONTAINS(g_bot_targets, this)) + IL_PUSH(g_bot_targets, this); this.iscaptured = true; this.islinked = true; this.isshielded = true;