]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/sandbox.qc
Combine `SELFCALL` and `SELFCALL_DONE` with `WITH`
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / sandbox.qc
index 430271d80df059113ca1cb8e3ba81e126201830c..da4f68d58eea020a6468cebc589a88d126a76ad3 100644 (file)
@@ -178,8 +178,7 @@ entity sandbox_ObjectSpawn(float database)
                e.angles_y = self.v_angle.y;
        }
 
-       SELFCALL(e, CSQCMODEL_AUTOINIT(e));
-       SELFCALL_DONE();
+       WITH(entity, self, e, CSQCMODEL_AUTOINIT(e));
 
        object_count += 1;
        return e;