]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't cause an unused variable error if the ReplicateVars system isn't used
authorMario <mario.mario@y7mail.com>
Mon, 30 Dec 2019 09:28:41 +0000 (19:28 +1000)
committerMario <mario.mario@y7mail.com>
Mon, 30 Dec 2019 09:28:41 +0000 (19:28 +1000)
qcsrc/lib/replicate.qh

index 31177426066b5b1a78b6ea9cf3b271caad0bd74d..019194a6d55df61e608e4fe9d6c126fb73ed08ad 100644 (file)
@@ -59,7 +59,7 @@
                                store.fld = field; \
                        }
        #elif defined(CSQC)
-               float ReplicateVars_time;
+               noref float ReplicateVars_time;
                #define ReplicateVars_NOT_SENDING() (time > ReplicateVars_time)
                #define ReplicateVars_DELAY(t) ReplicateVars_time = time + t
                #define ReplicateVars_DELAY_1FRAME() ReplicateVars_time = time