From 77ba5a1b3592bd37ea7cfd030d299b4e5c2ccbc7 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 20 Oct 2016 15:52:43 +0200 Subject: [PATCH] Onslaught: get rid of an error message when round restart --- qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2