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 | 48f2bf9bb1bd7b8859d3527c6c205386471cc4e4 (patch) | |
tree | a58aa837d70b430e5ab2ea0f71158e3b6032453b /src/road_cmd.cpp | |
parent | 7812f7fd0ac617a9df41730e6770519154bc5344 (diff) | |
download | openttd-48f2bf9bb1bd7b8859d3527c6c205386471cc4e4.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/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index f5213a787..fdc03a009 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -12,6 +12,7 @@ #include "table/strings.h" #include "functions.h" #include "map.h" +#include "landscape.h" #include "tile.h" #include "town_map.h" #include "vehicle.h" @@ -864,7 +865,7 @@ static void TileLoop_Road(TileIndex tile) { switch (_opt.landscape) { case LT_HILLY: - if (IsOnSnow(tile) != (GetTileZ(tile) > _opt.snow_line)) { + if (IsOnSnow(tile) != (GetTileZ(tile) > GetSnowLine())) { ToggleSnow(tile); MarkTileDirtyByTile(tile); } |