Also disable Ctrl hotkey for road stations
This commit is contained in:
@@ -282,12 +282,15 @@ static bool RoadToolbar_CtrlChanged(Window *w)
|
|||||||
if (w->IsWidgetDisabled(WID_ROT_REMOVE)) return false;
|
if (w->IsWidgetDisabled(WID_ROT_REMOVE)) return false;
|
||||||
|
|
||||||
/* allow ctrl to switch remove mode only for these widgets */
|
/* allow ctrl to switch remove mode only for these widgets */
|
||||||
|
// This breaks joining stations functionality on Android
|
||||||
|
/*
|
||||||
for (uint i = WID_ROT_ROAD_X; i <= WID_ROT_AUTOROAD; i++) {
|
for (uint i = WID_ROT_ROAD_X; i <= WID_ROT_AUTOROAD; i++) {
|
||||||
if (w->IsWidgetLowered(i)) {
|
if (w->IsWidgetLowered(i)) {
|
||||||
ToggleRoadButton_Remove(w);
|
ToggleRoadButton_Remove(w);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user