From 82855503beb1c670ee6ba743d3f0ff8ca9266f53 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 22 May 2016 15:28:35 +1000 Subject: [PATCH] Update self removal plan --- qcsrc/lib/self.qh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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); } -- 2.39.2