]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/spawn.qc
Purge a few cases of FOREACH_ENTITY_ENT
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / spawn.qc
index 5e1af3df7d305198f93ee75bf27875a78816454b..6c72ada3026700b0b2579b5b788f2607488ec003 100644 (file)
@@ -1,3 +1,4 @@
+#include "spawn.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
@@ -24,7 +25,7 @@ entity spawnmonster (string monster, float monster_id, entity spawnedby, entity
        {
                RandomSelection_Init();
                for(i = MON_FIRST; i <= MON_LAST; ++i)
-                       RandomSelection_Add(world, i, string_null, 1, 1);
+                       RandomSelection_Add(NULL, i, string_null, 1, 1);
 
            monster_id = RandomSelection_chosen_float;
        }