From: otta8634 Date: Mon, 30 Dec 2024 17:23:08 +0000 (+0800) Subject: Remove Maps from the guide X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=861d2fbf053db877acdee5ea51098c23e35ecbaa;p=xonotic%2Fxonotic-data.pk3dir.git Remove Maps from the guide For now it's commented out not removed (as well as DebugSource), in case people think it's worthwhile keeping. --- diff --git a/qcsrc/menu/xonotic/guide/guide.qc b/qcsrc/menu/xonotic/guide/guide.qc index 7c60b1a2b..7431d1d37 100644 --- a/qcsrc/menu/xonotic/guide/guide.qc +++ b/qcsrc/menu/xonotic/guide/guide.qc @@ -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 diff --git a/qcsrc/menu/xonotic/guide/guide.qh b/qcsrc/menu/xonotic/guide/guide.qh index 2a34aaaf2..e90636c24 100644 --- a/qcsrc/menu/xonotic/guide/guide.qh +++ b/qcsrc/menu/xonotic/guide/guide.qh @@ -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 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