]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/stats.qh
General cleanup/optimize
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / stats.qh
index f522023ef8aa662ebfb45d800ee9b5e736c9b66d..12dc425cd356e876a78e3406d4cb58126a6ea4d8 100644 (file)
@@ -20,7 +20,7 @@
        #define _STAT(id) g_stat_##id
        #define REGISTER_STAT(id, type) \
                type _STAT(id); \
-               REGISTER(RegisterStats, STAT, Stats, id, m_id, new(stat)) \
+               REGISTER(Stats, STAT, id, m_id, new(stat)) \
                { \
                        make_pure(this); \
                } \
@@ -43,7 +43,7 @@
        #define _STAT(id) stat_##id
        #define REGISTER_STAT(id, type) \
                .type _STAT(id); \
-               REGISTER(RegisterStats, STAT, Stats, id, m_id, new(stat)) \
+               REGISTER(Stats, STAT, id, m_id, new(stat)) \
                { \
                        make_pure(this); \
                } \
@@ -58,8 +58,8 @@
 const int STATS_ENGINE_RESERVE = 32 + (8 * 3); // Not sure how to handle vector stats yet, reserve them too
 
 REGISTRY(Stats, 220 - STATS_ENGINE_RESERVE)
-REGISTER_REGISTRY(RegisterStats)
-REGISTRY_SORT(Stats, 0)
+REGISTER_REGISTRY(Stats)
+REGISTRY_SORT(Stats)
 REGISTRY_CHECK(Stats)
 STATIC_INIT(RegisterStats_renumber)
 {