src/genworld.cpp
changeset 10438 51bff16a04c9
parent 10208 72c00af5c95d
child 10439 50f056aa3024
equal deleted inserted replaced
10437:6d64230b9fb9 10438:51bff16a04c9
   108 			if (_game_mode != GM_MENU) FlatEmptyWorld(_settings_game.game_creation.se_flat_world_height);
   108 			if (_game_mode != GM_MENU) FlatEmptyWorld(_settings_game.game_creation.se_flat_world_height);
   109 
   109 
   110 			ConvertGroundTilesIntoWaterTiles();
   110 			ConvertGroundTilesIntoWaterTiles();
   111 			IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
   111 			IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
   112 		} else {
   112 		} else {
   113 			GenerateLandscape(_gw.mode);
   113 			//GenerateLandscape(_gw.mode);
   114 			GenerateClearTile();
   114 			//GenerateClearTile();
   115 
   115 
   116 			/* only generate towns, tree and industries in newgame mode. */
   116 			/* only generate towns, tree and industries in newgame mode. */
   117 			if (_game_mode != GM_EDITOR) {
   117 			if (_game_mode != GM_EDITOR) {
   118 				GenerateTowns();
   118 				GenerateTowns();
   119 				GenerateIndustries();
   119 				//GenerateIndustries();
   120 				GenerateUnmovables();
   120 				//GenerateUnmovables();
   121 				GenerateTrees();
   121 				GenerateTrees();
   122 			}
   122 			}
   123 		}
   123 		}
   124 
   124 
   125 		ClearStorageChanges(true);
   125 		ClearStorageChanges(true);