From: Mario Date: Thu, 12 Apr 2018 15:09:13 +0000 (+1000) Subject: Allow hidden monsters with the allow_any flag (passive monsters are always excluded... X-Git-Tag: xonotic-v0.8.5~2188 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fabf62123acba43c5246ecc4f289b3f278f8fa0f;p=xonotic%2Fxonotic-data.pk3dir.git Allow hidden monsters with the allow_any flag (passive monsters are always excluded from random searches, new flag pending) --- diff --git a/qcsrc/common/monsters/sv_spawn.qc b/qcsrc/common/monsters/sv_spawn.qc index c2d6fd3f4..d456282d4 100644 --- a/qcsrc/common/monsters/sv_spawn.qc +++ b/qcsrc/common/monsters/sv_spawn.qc @@ -21,7 +21,7 @@ entity spawnmonster (entity e, string monster, int monster_id, entity spawnedby, if(monster == "random" || allow_any) { RandomSelection_Init(); - FOREACH(Monsters, it != MON_Null && (allow_any || !(it.spawnflags & MONSTER_TYPE_PASSIVE)) && !(it.spawnflags & MON_FLAG_HIDDEN), + FOREACH(Monsters, it != MON_Null && (allow_any || !(it.spawnflags & MON_FLAG_HIDDEN)) && !(it.spawnflags & MONSTER_TYPE_PASSIVE), { RandomSelection_AddEnt(it, 1, 1); });