Cleanup: Expose last built types in the toolbar gui header.

This commit is contained in:
Rito12
2026-01-30 00:00:53 +01:00
committed by rubidium42
parent a706ac7dc9
commit 2de2c5d31d
3 changed files with 9 additions and 5 deletions
+1 -2
View File
@@ -27,6 +27,7 @@
#include "company_base.h"
#include "hotkeys.h"
#include "road_gui.h"
#include "toolbar_gui.h"
#include "zoom_func.h"
#include "dropdown_type.h"
#include "dropdown_func.h"
@@ -862,13 +863,11 @@ struct BuildRoadToolbarWindow : Window {
static EventState RoadToolbarGlobalHotkeys(int hotkey)
{
extern RoadType _last_built_roadtype;
return RoadTramToolbarGlobalHotkeys(hotkey, _last_built_roadtype, RTT_ROAD);
}
static EventState TramToolbarGlobalHotkeys(int hotkey)
{
extern RoadType _last_built_tramtype;
return RoadTramToolbarGlobalHotkeys(hotkey, _last_built_tramtype, RTT_TRAM);
}