diff options
author | rubidium <rubidium@openttd.org> | 2008-05-25 22:36:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-25 22:36:44 +0000 |
commit | 8c9cc415e3eac6a7709f6a8978f213311416312e (patch) | |
tree | 1460114c8e9243ecb6e428c7db15dfa7abc391ed /src/unmovable_cmd.cpp | |
parent | 51ca426c4bdb85137be82b0cc2436fc5ac0c442f (diff) | |
download | openttd-8c9cc415e3eac6a7709f6a8978f213311416312e.tar.xz |
(svn r13255) -Codechange: move _opt to _settings.
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 61ab5fe9b..f84a4d8e7 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -375,11 +375,11 @@ static bool IsRadioTowerNearby(TileIndex tile) void GenerateUnmovables() { - if (_opt.landscape == LT_TOYLAND) return; + if (_settings.game_creation.landscape == LT_TOYLAND) return; /* add radio tower */ int radiotowser_to_build = ScaleByMapSize(15); // maximum number of radio towers on the map - int lighthouses_to_build = _opt.landscape == LT_TROPIC ? 0 : ScaleByMapSize1D((Random() & 3) + 7); + int lighthouses_to_build = _settings.game_creation.landscape == LT_TROPIC ? 0 : ScaleByMapSize1D((Random() & 3) + 7); SetGeneratingWorldProgress(GWP_UNMOVABLE, radiotowser_to_build + lighthouses_to_build); for (uint i = ScaleByMapSize(1000); i != 0; i--) { @@ -395,7 +395,7 @@ void GenerateUnmovables() } } - if (_opt.landscape == LT_TROPIC) return; + if (_settings.game_creation.landscape == LT_TROPIC) return; /* add lighthouses */ uint maxx = MapMaxX(); |