From 104a3997f81580e54dc52dd0ebae56343cf4858f Mon Sep 17 00:00:00 2001 From: TimePath Date: Tue, 10 Nov 2015 18:48:23 +1100 Subject: [PATCH] net_notice: declare locals as locals, not macros --- qcsrc/common/net_notice.qc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.39.2