]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/sv_spawn.qc
refactor RandomSelection, add a field for vector
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / sv_spawn.qc
index da924cf96b37ec7e8ba707f40f1e1a79c88d156a..9e87e488e624323d336ee9cfcedb36ec651b1ba9 100644 (file)
@@ -24,7 +24,7 @@ entity spawnmonster (string monster, int monster_id, entity spawnedby, entity ow
                RandomSelection_Init(); 
                FOREACH(Monsters, it != MON_Null,
                {
-                       RandomSelection_Add(it, 0, string_null, 1, 1);
+                       RandomSelection_AddEnt(it, 1, 1);
                });
 
                monster_id = RandomSelection_chosen_ent.monsterid;