From: Mario Date: Wed, 19 Oct 2016 19:44:45 +0000 (+1000) Subject: Don't spawn passive monsters if random is chosen X-Git-Tag: xonotic-v0.8.2~501 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=86bf6f973ddf885acdfe63d89d5f48e2ae3d7ec4 Don't spawn passive monsters if random is chosen --- diff --git a/qcsrc/common/monsters/sv_spawn.qc b/qcsrc/common/monsters/sv_spawn.qc index 9e87e488e6..8c65825207 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); });