]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revoke spawnfunc_target_changelevel_use
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 24 Sep 2015 07:31:59 +0000 (17:31 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 24 Sep 2015 07:31:59 +0000 (17:31 +1000)
qcsrc/common/triggers/target/changelevel.qc

index 259acab9a551c5a24e129b5d4d8a2dfb28fc0932..51e360e0c587c277dfecfd56f4a88e7a5d32d70c 100644 (file)
@@ -3,8 +3,9 @@
 .entity chlevel_targ;
 
 
-spawnfunc(target_changelevel_use)
+void target_changelevel_use()
 {
+       SELFPARAM();
        if(self.spawnflags & 2)
        {
                // simply don't react if a non-player triggers it
@@ -35,11 +36,9 @@ spawnfunc(target_changelevel_use)
                localcmd(strcat("changelevel ", self.chmap, "\n"));
 }
 
-void _spawnfunc_target_changelevel_use() { SELFPARAM(); spawnfunc_target_changelevel_use(this); }
-
 spawnfunc(target_changelevel)
 {
-       self.use = _spawnfunc_target_changelevel_use;
+       self.use = target_changelevel_use;
 
        if(!self.count) { self.count = 0.7; }
 }