Changeset - r16008:9e928d35e5d3
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-09-01 19:00:32
terkhen@openttd.org
(svn r20711) -Fix [FS#4094]: Do not use new game settings when creating many random towns at the scenario editor.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1774,7 +1774,7 @@ static const byte _num_initial_towns[4] 
 
bool GenerateTowns(TownLayout layout)
 
{
 
	uint current_number = 0;
 
	uint difficulty = _settings_game.difficulty.number_towns;
 
	uint difficulty = (_game_mode != GM_EDITOR) ? _settings_game.difficulty.number_towns : 0;
 
	uint total = (difficulty == (uint)CUSTOM_TOWN_NUMBER_DIFFICULTY) ? _settings_game.game_creation.custom_town_number : ScaleByMapSize(_num_initial_towns[difficulty] + (Random() & 7));
 
	uint32 townnameparts;
 

	
0 comments (0 inline, 0 general)