Allow scrolling when selecting destination station or building single-tile objects

This commit is contained in:
pelya
2014-11-16 03:38:40 +02:00
parent 9875c97661
commit 8f7e444f4f
8 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -408,7 +408,7 @@ struct BuildRoadToolbarWindow : Window {
case WID_ROT_DEPOT:
if (_game_mode == GM_EDITOR || !CanBuildVehicleInfrastructure(VEH_ROAD)) return;
if (HandlePlacePushButton(this, WID_ROT_DEPOT, SPR_CURSOR_ROAD_DEPOT, HT_RECT)) {
if (HandlePlacePushButton(this, WID_ROT_DEPOT, SPR_CURSOR_ROAD_DEPOT, HT_RECT | HT_SCROLL_VIEWPORT)) {
ShowRoadDepotPicker(this);
this->last_started_action = widget;
}