]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/replicate.qh
Improve QCC compatibility
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / replicate.qh
index c7a42042deac253dc3172aeaf929a80ba2958b18..4031352fedbe8c34eb264ca20c22682c4f2e1c0a 100644 (file)
        #define REPLICATE(...) EVAL_REPLICATE(OVERLOAD(REPLICATE, __VA_ARGS__))
        #define EVAL_REPLICATE(...) __VA_ARGS__
 
-       [[accumulate]] void ReplicateVars(entity this, entity store, string thisname, int i) {}
+       ACCUMULATE void ReplicateVars(entity this, entity store, string thisname, int i) {}
 
        #define REPLICATE_3(fld, type, var) REPLICATE_4(fld, type, var, )
        #define REPLICATE_4(fld, type, var, func) REPLICATE_##type(fld, var, func)
        #define REPLICATE_string(fld, var, func) \
                REPLICATE_7(fld, string, var, , \
-       { if (field) strunzone(field); field = strzone(it); }, \
+       { strcpy(field, it); }, \
        { if (field) strunzone(field); field = string_null; }, \
        { \
                /* also initialize to the default value of func when requesting cvars */ \