diff options
author | celestar <celestar@openttd.org> | 2006-05-11 14:05:23 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-05-11 14:05:23 +0000 |
commit | c764bc35f566161bb25d08b586f3e0df3e389a1f (patch) | |
tree | 059d9c2b704580d42d3098d5d276cf81a9d2b7a3 | |
parent | 2e05a16959ff23ff504f823a9d2b8d92a9a3f873 (diff) | |
download | openttd-c764bc35f566161bb25d08b586f3e0df3e389a1f.tar.xz |
(svn r4827) -Fix (FS#160) In the terraform toolbar, don't treat the plant tree button as place-push-button, because it isn't
-rw-r--r-- | terraform_gui.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/terraform_gui.c b/terraform_gui.c index 154d7d230..72b2a53a7 100644 --- a/terraform_gui.c +++ b/terraform_gui.c @@ -158,8 +158,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); @@ -187,7 +185,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) |