]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean up guide/pages.qh a bit
authorotta8634 <k9wolf@pm.me>
Sat, 11 Jan 2025 14:48:22 +0000 (22:48 +0800)
committerotta8634 <k9wolf@pm.me>
Sat, 11 Jan 2025 14:48:22 +0000 (22:48 +0800)
qcsrc/menu/xonotic/guide/pages.qh

index 3eae3a715269ca18aec08c37a637e6160d854d3f..939e09bc788db496fd3a3ea0244e00e553b3169b 100644 (file)
@@ -1,6 +1,8 @@
 #pragma once
 
-CLASS(GuidePage, Object);
+// This is for the freetext sections only
+
+CLASS(GuidePage, Object)
        ATTRIB(GuidePage, m_id, int, 0);
        ATTRIB(GuidePage, m_name, string, "");
        ATTRIB(GuidePage, m_icon, string);
@@ -25,8 +27,7 @@ CLASS(GuidePage, Object);
 ENDCLASS(GuidePage)
 
 REGISTRY(GuidePages, 16)
-#define REGISTER_GUIDE_PAGE(id, name, icon) \
-       REGISTER(GuidePages, GUIDE_PAGE, id, m_id, NEW(GuidePage, name, icon))
+#define REGISTER_GUIDE_PAGE(id, name, icon) REGISTER(GuidePages, GUIDE_PAGE, id, m_id, NEW(GuidePage, name, icon))
 REGISTER_REGISTRY(GuidePages)
 
 REGISTER_GUIDE_PAGE(0, _("Introduction"), "gametype_dm")