]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove Maps from the guide
authorotta8634 <k9wolf@pm.me>
Mon, 30 Dec 2024 17:23:08 +0000 (01:23 +0800)
committerotta8634 <k9wolf@pm.me>
Mon, 30 Dec 2024 17:23:08 +0000 (01:23 +0800)
For now it's commented out not removed (as well as DebugSource), in case people think it's worthwhile keeping.

qcsrc/menu/xonotic/guide/guide.qc
qcsrc/menu/xonotic/guide/guide.qh

index 7c60b1a2b3dcf2cca555705af13fe871f65805f3..7431d1d378be58302ca5b4b268d06661ff3dc276 100644 (file)
@@ -73,6 +73,7 @@ METHOD(DebugSource, reload, int(DebugSource this, string filter))
 }
 */
 
+#if 0
 METHOD(MapSource, getEntry, entity(MapSource this, int i, void(string, string) returns))
 {
        if (!MapInfo_Get_ByID(i))
@@ -100,3 +101,4 @@ METHOD(MapSource, destroy, void(MapSource this))
 {
        MapInfo_Shutdown();
 }
+#endif
index 2a34aaaf234bf09051c7f3ed5ecbc58cac6881ac..e90636c24b12f63f1a3e67f0be08e6b04ff79e9d 100644 (file)
@@ -17,7 +17,7 @@
        X(NEW(VehicleSource),   _("Vehicles"),  "gametype_rc") \
        X(NEW(TurretSource),    _("Turrets"),   "gametype_as") \
        X(NEW(MutatorSource),   _("Mutators"),  "gametype_nb") \
-       X(NEW(MapSource),       _("Maps"),      "gametype_ctf") \
+       /*X(NEW(MapSource),       _("Maps"),      "gametype_ctf")*/ \
        /*if (gamestatus & GAME_DEVELOPER) X(NEW(DebugSource), _("Debug"), "gametype_ons")*/ \
        /**/
 CLASS(TopicSource, DataSource)
@@ -101,9 +101,11 @@ REGISTRY_SOURCE(TurretSource, Turrets, Turrets)
 #include <common/mutators/base.qh>
 REGISTRY_SOURCE(MutatorSource, Mutators, Mutators)
 
+#if 0
 CLASS(MapSource, DataSource)
        METHOD(MapSource, getEntry, entity(MapSource this, int i, void(string, string) returns));
        METHOD(MapSource, indexOf, int(MapSource this, string s));
        METHOD(MapSource, reload, int(MapSource this, string s));
        METHOD(MapSource, destroy, void(MapSource));
 ENDCLASS(MapSource)
+#endif