(svn r12029) -Feature: Allow trees on shore.

This commit is contained in:
frosch
2008-01-31 17:54:13 +00:00
parent 90ee6a16ab
commit 23e6411fb7
7 changed files with 106 additions and 41 deletions

View File

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