From af7c8ce6379ef801e98fa47ae3c5c561fc584f29 Mon Sep 17 00:00:00 2001 From: phbe Date: Tue, 21 Jul 2026 19:43:54 +0200 Subject: [PATCH] feat(gui): Show all available maps in the map list (previously limited to ~100) --- Core/GameEngine/Source/GameClient/MapUtil.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/GameEngine/Source/GameClient/MapUtil.cpp b/Core/GameEngine/Source/GameClient/MapUtil.cpp index 1806c50741a..2f0f961db69 100644 --- a/Core/GameEngine/Source/GameClient/MapUtil.cpp +++ b/Core/GameEngine/Source/GameClient/MapUtil.cpp @@ -913,6 +913,13 @@ Int populateMapListboxNoReset( GameWindow *listbox, Bool useSystemMaps, Bool isM if (!listbox) return -1; + // TheSuperHackers @feature pberthold 14/07/2026 Grow the map list to hold every cached map, + // so none are silently dropped. The capacity otherwise comes from the window's LISTBOXDATA + // LENGTH and caps large collections (Skirmish/LAN/Online, all titles and mods). + const Int neededListLength = (Int)TheMapCache->size(); + if (neededListLength > GadgetListBoxGetListLength( listbox )) + GadgetListBoxSetListLength( listbox, neededListLength ); + MapListBoxData lbData; lbData.listbox = listbox; lbData.numLength = GadgetListBoxGetListLength( listbox );