]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/secret.qc
Remove SELFPARAM() from .think and .touch
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / secret.qc
index 5cae4ed4e6460d2e6d0ebd7535a9e48a5eea17aa..a6f40be3ea5521a909f7d0df6c649e995e0da39c 100644 (file)
@@ -17,8 +17,8 @@ void secrets_setstatus()
 /**
  * A secret has been found (maybe :P)
  */
-void trigger_secret_touch()
-{SELFPARAM();
+void trigger_secret_touch(entity this)
+{
        // only a player can trigger this
        if (!IS_PLAYER(other))
                return;
@@ -33,7 +33,7 @@ void trigger_secret_touch()
        self.message = "";
 
        // handle normal trigger features
-       multi_touch();
+       multi_touch(self);
        remove(self);
 }
 
@@ -80,7 +80,7 @@ spawnfunc(trigger_secret)
        spawnfunc_trigger_once(this);
 
        // take over the touch() function, so we can mark secret as found
-       this.touch = trigger_secret_touch;
+       settouch(this, trigger_secret_touch);
        // ignore triggering;
        this.use = func_null;
 }