]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/spawn.qc
Merge branch 'terencehill/lms_itemtimes_fix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / spawn.qc
index dfa318fe3acd92224dcd5e35367b0fc006eeabdc..70459263f1087da264e10fe71d95b218bbf59279 100644 (file)
@@ -1,13 +1,12 @@
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
-       #include "../../dpdefs/progsdefs.qh"
     #include "../util.qh"
     #include "all.qh"
     #include "sv_monsters.qh"
     #include "spawn.qh"
-    #include "../../server/autocvars.qh"
-    #include "../../server/defs.qh"
+    #include <server/autocvars.qh>
+    #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();
@@ -62,9 +61,9 @@ entity spawnmonster (string monster, float monster_id, entity spawnedby, entity
 
                e.angles_y = spawnedby.angles_y;
        }
-       
+
        // Monster_Spawn checks if monster is valid
-       WITH(entity, self, e, Monster_Spawn(monster_id));
+       Monster_Spawn(e, monster_id);
 
        return e;
 }