From 86bf6f973ddf885acdfe63d89d5f48e2ae3d7ec4 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 20 Oct 2016 05:44:45 +1000 Subject: [PATCH] Don't spawn passive monsters if random is chosen --- qcsrc/common/monsters/sv_spawn.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/monsters/sv_spawn.qc b/qcsrc/common/monsters/sv_spawn.qc index 9e87e488e..8c6582520 100644 --- a/qcsrc/common/monsters/sv_spawn.qc +++ b/qcsrc/common/monsters/sv_spawn.qc @@ -22,7 +22,7 @@ entity spawnmonster (string monster, int monster_id, entity spawnedby, entity ow if(monster == "random") { RandomSelection_Init(); - FOREACH(Monsters, it != MON_Null, + FOREACH(Monsters, it != MON_Null && !(it.spawnflags & MONSTER_TYPE_PASSIVE), { RandomSelection_AddEnt(it, 1, 1); }); -- 2.39.2