From: TimePath Date: Sun, 22 May 2016 05:28:35 +0000 (+1000) Subject: Update self removal plan X-Git-Tag: xonotic-v0.8.2~901 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=82855503beb1c670ee6ba743d3f0ff8ca9266f53;p=xonotic%2Fxonotic-data.pk3dir.git Update self removal plan --- diff --git a/qcsrc/lib/self.qh b/qcsrc/lib/self.qh index d028bc28f..7822eefe3 100644 --- a/qcsrc/lib/self.qh +++ b/qcsrc/lib/self.qh @@ -30,10 +30,20 @@ // Step 5: this should work #if 0 + #undef self #define self (0, this) #endif -// Step 6: Remove SELFPARAM in favor of a parameter +// Step 6: remove SELFPARAM, add parameters +#if 0 + #undef SELFPARAM +#endif + +// Step 7: remove WITHSELF, no replacement +#if 0 + #undef WITHSELF + #define WITHSELF(value, block) block +#endif .void(entity this) selftouch; void touch_self() { SELFPARAM(); this.selftouch(this); }