From 89734cb472048e138cf35c81b1523b9cf427f5b3 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 24 Aug 2019 17:49:58 +1000 Subject: [PATCH] If the monster already has flags set to FL_MONSTER, don't push it to the monster list, as it should already exist there (fixes warnings when setting monsters to appear) --- qcsrc/common/monsters/sv_monsters.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index c707f8c38..0673cd0ba 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -1318,7 +1318,7 @@ bool Monster_Spawn(entity this, bool check_appear, int mon_id) if(!autocvar_g_monsters) { Monster_Remove(this); return false; } - if(!(this.spawnflags & MONSTERFLAG_RESPAWNED)) + if(!(this.spawnflags & MONSTERFLAG_RESPAWNED) && !(this.flags & FL_MONSTER)) { IL_PUSH(g_monsters, this); if(this.mdl && this.mdl != "") -- 2.39.2