mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Cleanup: Expose last built types in the toolbar gui header.
This commit is contained in:
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user