summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
committeralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
commitbe6c0584240caf420b2475a0be036391e842e8af (patch)
tree6111751cf5526e1eb41176782d84766c4e9ed185 /src/landscape.cpp
parent645b6ce77345867fa96861843197481131566c46 (diff)
downloadopenttd-be6c0584240caf420b2475a0be036391e842e8af.tar.xz
(svn r20211) -Codechange: Indented code should have curly braces around it.
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index ea3199422..77cfbe516 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -837,8 +837,9 @@ static void CreateDesertOrRainForest()
TileIndex t = AddTileIndexDiffCWrap(tile, *data);
if (t != INVALID_TILE && (TileHeight(t) >= 4 || IsTileType(t, MP_WATER))) break;
}
- if (data == endof(_make_desert_or_rainforest_data))
+ if (data == endof(_make_desert_or_rainforest_data)) {
SetTropicZone(tile, TROPICZONE_DESERT);
+ }
}
for (uint i = 0; i != 256; i++) {
@@ -857,8 +858,9 @@ static void CreateDesertOrRainForest()
TileIndex t = AddTileIndexDiffCWrap(tile, *data);
if (t != INVALID_TILE && IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_DESERT)) break;
}
- if (data == endof(_make_desert_or_rainforest_data))
+ if (data == endof(_make_desert_or_rainforest_data)) {
SetTropicZone(tile, TROPICZONE_RAINFOREST);
+ }
}
}