From: TimePath Date: Tue, 10 Nov 2015 07:48:23 +0000 (+1100) Subject: net_notice: declare locals as locals, not macros X-Git-Tag: xonotic-v0.8.2~1681 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=104a3997f81580e54dc52dd0ebae56343cf4858f;p=xonotic%2Fxonotic-data.pk3dir.git net_notice: declare locals as locals, not macros --- diff --git a/qcsrc/common/net_notice.qc b/qcsrc/common/net_notice.qc index b54e19e98..63e318d2f 100644 --- a/qcsrc/common/net_notice.qc +++ b/qcsrc/common/net_notice.qc @@ -72,8 +72,8 @@ float cl_notice_run() _notes = findchain(classname, "sv_notice"); if(!_notes) return false; - #define M1 30 - #define M2 10 + const int M1 = 30; + const int M2 = 10; vector v1, v2 = '0 0 0', v3; v1 = '1 1 0' * M1; @@ -111,8 +111,6 @@ float cl_notice_run() } #undef OUT - #undef M1 - #undef M2 return m; }