(svn r4827) -Fix (FS#160) In the terraform toolbar, don't treat the plant tree button as place-push-button, because it isn't

This commit is contained in:
celestar 2006-05-11 14:05:23 +00:00
parent 2e05a16959
commit c764bc35f5
1 changed files with 2 additions and 3 deletions

View File

@ -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)