diff options
author | alberth <alberth@openttd.org> | 2011-02-06 18:26:50 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-02-06 18:26:50 +0000 |
commit | 4364cec392d1352406906a551e3ffa3f72da61ba (patch) | |
tree | 086ec0e028aaec75c92364dd1abd492d01672294 /src/genworld_gui.cpp | |
parent | d84502c4327343ce2f25bca77febd5eca68cdf6c (diff) | |
download | openttd-4364cec392d1352406906a551e3ffa3f72da61ba.tar.xz |
(svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index a62c2e4f5..e8d983fd1 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -390,7 +390,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { } break; - case GLAND_INDUSTRY_PULLDOWN: SetDParam(0, _game_mode == GM_EDITOR ? STR_DISASTERS_OFF : _num_inds[_settings_newgame.difficulty.number_industries]); break; + case GLAND_INDUSTRY_PULLDOWN: SetDParam(0, _game_mode == GM_EDITOR ? STR_DISASTERS_OFF : _num_inds[_settings_newgame.difficulty.industry_density]); break; case GLAND_LANDSCAPE_PULLDOWN: SetDParam(0, _landscape[_settings_newgame.game_creation.land_generator]); break; case GLAND_TREE_PULLDOWN: SetDParam(0, _tree_placer[_settings_newgame.game_creation.tree_placer]); break; case GLAND_TERRAIN_PULLDOWN: SetDParam(0, _elevations[_settings_newgame.difficulty.terrain_type]); break; @@ -586,7 +586,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { break; case GLAND_INDUSTRY_PULLDOWN: // Number of industries - ShowDropDownMenu(this, _num_inds, _settings_newgame.difficulty.number_industries, GLAND_INDUSTRY_PULLDOWN, 0, 0); + ShowDropDownMenu(this, _num_inds, _settings_newgame.difficulty.industry_density, GLAND_INDUSTRY_PULLDOWN, 0, 0); break; case GLAND_RANDOM_BUTTON: // Random seed @@ -761,7 +761,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { break; case GLAND_INDUSTRY_PULLDOWN: - IConsoleSetSetting("difficulty.number_industries", index); + IConsoleSetSetting("difficulty.industry_density", index); break; case GLAND_TERRAIN_PULLDOWN: { |