]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/spawn.qc
Cleanup server mutator #includes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / spawn.qc
index e2e573d654d901ca3b680f93395a1cf394e5e4a6..23fc845ac75d3f35c9b0ad7e77ca1a9fa98e6057 100644 (file)
@@ -9,7 +9,7 @@
     #include <server/defs.qh>
 #endif
 entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag)
-{SELFPARAM();
+{
        float i;
        entity e = spawn();
 
@@ -24,7 +24,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;
        }
@@ -63,7 +63,7 @@ entity spawnmonster (string monster, float monster_id, entity spawnedby, entity
        }
 
        // Monster_Spawn checks if monster is valid
-       WITH(entity, self, e, Monster_Spawn(monster_id));
+       Monster_Spawn(e, monster_id);
 
        return e;
 }