diff options
author | tron <tron@openttd.org> | 2007-02-24 06:46:20 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-24 06:46:20 +0000 |
commit | 1d1121f85a975a6b9ed8305c154fc39f4f5db7fd (patch) | |
tree | dc9610214fcd9e5497b8289fdb59c506a6007a31 /src/tree_cmd.cpp | |
parent | 029ceda0f1c2f11231a0662cc45057f8452f645a (diff) | |
download | openttd-1d1121f85a975a6b9ed8305c154fc39f4f5db7fd.tar.xz |
(svn r8875) -Fix
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index 3121a5b2a..7ce4987ee 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -237,8 +237,6 @@ int32 CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) for (y = sy; y <= ey; y++) { TileIndex tile = TileXY(x, y); - if (!EnsureNoVehicle(tile)) continue; - switch (GetTileType(tile)) { case MP_TREES: // no more space for trees? |