]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove observers from monster attack target list and reset their dphitcontentsmask
authorMario <mario@smbclan.net>
Sat, 3 Mar 2018 15:31:19 +0000 (01:31 +1000)
committerMario <mario@smbclan.net>
Sat, 3 Mar 2018 15:31:19 +0000 (01:31 +1000)
qcsrc/server/client.qc

index e898e74e8f996605e6a73bc8548a5a9004ea2336..238e07fb0f33d8febf4482dda7811e9581e1295d 100644 (file)
@@ -308,6 +308,9 @@ void PutObserverInServer(entity this)
        if(this.bot_attack)
                IL_REMOVE(g_bot_targets, this);
        this.bot_attack = false;
+       if(this.monster_attack)
+               IL_REMOVE(g_monster_targets, this);
+       this.monster_attack = false;
     STAT(HUD, this) = HUD_NORMAL;
        TRANSMUTE(Observer, this);
        this.iscreature = false;
@@ -340,6 +343,7 @@ void PutObserverInServer(entity this)
        this.strength_finished = 0;
        this.invincible_finished = 0;
        this.superweapons_finished = 0;
+       this.dphitcontentsmask = 0;
        this.pushltime = 0;
        this.istypefrag = 0;
        setthink(this, func_null);