]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cheats.qc
Merge branch 'master' into Mario/use1
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cheats.qc
index e13678dce5995e6381c3dd248cdb275aecc174a8..add6d535564b5e9bd4a855cfede7582678436c24 100644 (file)
@@ -675,8 +675,7 @@ float CheatCommand(float argc)
                        IS_CHEAT(0, argc, 0);
                        setself(spawn());
                        self.target = argv(1);
-                       activator = this;
-                       SUB_UseTargets();
+                       SUB_UseTargets(self, this, NULL);
                        remove(self);
                        setself(this);
                        DID_CHEAT();
@@ -685,8 +684,7 @@ float CheatCommand(float argc)
                        IS_CHEAT(0, argc, 0);
                        setself(spawn());
                        self.killtarget = argv(1);
-                       activator = this;
-                       SUB_UseTargets();
+                       SUB_UseTargets(self, this, NULL);
                        remove(self);
                        setself(this);
                        DID_CHEAT();