]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/replicate.qh
Real fix for inconsistent refresh rate of numbers in the speedometer
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / replicate.qh
index b74a881f35b8761f667165c6649b992bd07ed834..a36466d2e0ffb8daca62e22bd35706bbeb5e761a 100644 (file)
@@ -1,8 +1,16 @@
-#ifndef REPLICATE_H
-#define REPLICATE_H
-#ifndef MENUQC
+#pragma once
 
-       #define REPLICATE(...) EVAL(OVERLOAD(REPLICATE, __VA_ARGS__))
+#ifdef GAMEQC
+
+    /**
+     * Replicate a client cvar into a server field
+     *
+     * @param fld   The field to replicate into
+     * @param type  The field type
+     * @param cvar  The cvar name
+     */
+       #define REPLICATE(...) EVAL_REPLICATE(OVERLOAD(REPLICATE, __VA_ARGS__))
+       #define EVAL_REPLICATE(...) __VA_ARGS__
 
        [[accumulate]] void ReplicateVars(entity this, string thisname, int i) {}
 
@@ -53,4 +61,3 @@
        #endif
 
 #endif
-#endif