]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
net_notice: declare locals as locals, not macros
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 10 Nov 2015 07:48:23 +0000 (18:48 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 10 Nov 2015 07:48:23 +0000 (18:48 +1100)
qcsrc/common/net_notice.qc

index b54e19e98312b5ef91fb7e98293cb458a7ce86c3..63e318d2f7c03d4d4b3e9f7b043615993b3126c0 100644 (file)
@@ -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;
 }