diff options
author | frosch <frosch@openttd.org> | 2008-01-31 17:54:13 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-01-31 17:54:13 +0000 |
commit | a1c543e064dff7b80265ca1ead07eab7562f09c9 (patch) | |
tree | fc3e72fdb1e00ec295eee399031a16a5c311b79d /src/terraform_gui.cpp | |
parent | fe9891c8ec0376a3a79195ee2bd76bba317865a5 (diff) | |
download | openttd-a1c543e064dff7b80265ca1ead07eab7562f09c9.tar.xz |
(svn r12029) -Feature: Allow trees on shore.
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r-- | src/terraform_gui.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 858aa85bc..73c6d645a 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -22,6 +22,7 @@ #include "textbuf_gui.h" #include "genworld.h" #include "settings_type.h" +#include "tree_map.h" #include "table/sprites.h" #include "table/strings.h" @@ -83,8 +84,10 @@ static void GenerateRockyArea(TileIndex end, TileIndex start) BEGIN_TILE_LOOP(tile, size_x, size_y, TileXY(sx, sy)) { switch (GetTileType(tile)) { - case MP_CLEAR: case MP_TREES: + if (GetTreeGround(tile) == TREE_GROUND_SHORE) continue; + /* FALL THROUGH */ + case MP_CLEAR: MakeClear(tile, CLEAR_ROCKS, 3); break; |