mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 12:44:10 +01:00
(svn r4922) - Backport from trunk (r4827):
The build-tree window button defaulted to a place-push-button on opening where no treetype is selected.
This commit is contained in:
@@ -156,8 +156,6 @@ void PlaceProc_LevelLand(TileIndex tile)
|
||||
VpStartPlaceSizing(tile, VPM_X_AND_Y | GUI_PlaceProc_LevelArea);
|
||||
}
|
||||
|
||||
static void PlaceProc_PlantTree(TileIndex tile) {}
|
||||
|
||||
static void TerraformClick_Lower(Window *w)
|
||||
{
|
||||
HandlePlacePushButton(w, 4, ANIMCURSOR_LOWERLAND, 2, PlaceProc_LowerLand);
|
||||
@@ -185,7 +183,8 @@ static void TerraformClick_BuyLand(Window *w)
|
||||
|
||||
static void TerraformClick_Trees(Window *w)
|
||||
{
|
||||
if (HandlePlacePushButton(w, 9, SPR_CURSOR_MOUSE, 1, PlaceProc_PlantTree)) ShowBuildTreesToolbar();
|
||||
/* This button is NOT a place-push-button, so don't treat it as such */
|
||||
ShowBuildTreesToolbar();
|
||||
}
|
||||
|
||||
static void TerraformClick_PlaceSign(Window *w)
|
||||
|
||||
Reference in New Issue
Block a user