]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Onslaught: get rid of an error message when round restart
authorterencehill <piuntn@gmail.com>
Thu, 20 Oct 2016 13:52:43 +0000 (15:52 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 20 Oct 2016 13:52:43 +0000 (15:52 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc

index a18ce34c5d06e83ad98d95a2e606f0034b5bc333..c2b865f79ebec6dc4458b1f5363611c0ffdfa04e 100644 (file)
@@ -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;