summaryrefslogtreecommitdiff
path: root/src/terraform_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-01-31 17:54:13 +0000
committerfrosch <frosch@openttd.org>2008-01-31 17:54:13 +0000
commit23e6411fb7a8a6052093a9910ab7cfdd811ddd7c (patch)
treefc3e72fdb1e00ec295eee399031a16a5c311b79d /src/terraform_gui.cpp
parent90ee6a16ab499135691fc0be395555d69e0c620e (diff)
downloadopenttd-23e6411fb7a8a6052093a9910ab7cfdd811ddd7c.tar.xz
(svn r12029) -Feature: Allow trees on shore.
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r--src/terraform_gui.cpp5
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;