diff options
author | maedhros <maedhros@openttd.org> | 2007-03-20 13:47:00 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-03-20 13:47:00 +0000 |
commit | 94db6aa1a2849167ba5100a5f3d6393007ec988b (patch) | |
tree | a58aa837d70b430e5ab2ea0f71158e3b6032453b /src/rail_cmd.cpp | |
parent | ad0b5de3da0a6ca375a344e2cbd79a3bc7c4137f (diff) | |
download | openttd-94db6aa1a2849167ba5100a5f3d6393007ec988b.tar.xz |
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 0bb915ec1..6a3f0a043 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -12,6 +12,7 @@ #include "table/sprites.h" #include "table/strings.h" #include "map.h" +#include "landscape.h" #include "tile.h" #include "town_map.h" #include "tunnel_map.h" @@ -1738,7 +1739,7 @@ static void TileLoop_Track(TileIndex tile) switch (_opt.landscape) { case LT_HILLY: - if (GetTileZ(tile) > _opt.snow_line) { + if (GetTileZ(tile) > GetSnowLine()) { new_ground = RAIL_GROUND_ICE_DESERT; goto set_ground; } |