From: TimePath Date: Thu, 24 Sep 2015 07:31:59 +0000 (+1000) Subject: Revoke spawnfunc_target_changelevel_use X-Git-Tag: xonotic-v0.8.2~1886^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43b95435d52962fa9a0058bc9642601c7d69a79e;p=xonotic%2Fxonotic-data.pk3dir.git Revoke spawnfunc_target_changelevel_use --- diff --git a/qcsrc/common/triggers/target/changelevel.qc b/qcsrc/common/triggers/target/changelevel.qc index 259acab9a..51e360e0c 100644 --- a/qcsrc/common/triggers/target/changelevel.qc +++ b/qcsrc/common/triggers/target/changelevel.qc @@ -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; } }