]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/monsters/spawn.qc
Combine `SELFCALL` and `SELFCALL_DONE` with `WITH`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / spawn.qc
index 9e9810b4638ae42c5704108fdbbc49a8bde0d1e8..dfa318fe3acd92224dcd5e35367b0fc006eeabdc 100644 (file)
@@ -64,8 +64,7 @@ entity spawnmonster (string monster, float monster_id, entity spawnedby, entity
        }
        
        // Monster_Spawn checks if monster is valid
-       SELFCALL(e, Monster_Spawn(monster_id));
-       SELFCALL_DONE();
+       WITH(entity, self, e, Monster_Spawn(monster_id));
 
        return e;
 }