Store tool handlers as shared pointers

This commit is contained in:
dP
2025-10-08 16:45:05 +05:00
parent 0ba1ed61a5
commit f149f369a1
5 changed files with 100 additions and 90 deletions

View File

@@ -2520,3 +2520,10 @@ void ShowSelectWaypointIfNeeded(TileArea ta, StationPickerCmdProc proc)
{
ShowSelectBaseStationIfNeeded<Waypoint>(ta, std::move(proc));
}
namespace citymania {
void ShowSelectStationWindow(TileArea ta, StationPickerCmdProc&& proc) {
if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace();
new SelectStationWindow<Station>(&_select_station_desc, ta, std::move(proc));
}
}