Add: allow loading heightmaps from command-line (#11870)
If you want to load a file from tar, you have to give the file inside the tar in order for it to work: <tar-file>/<dir-in-tar>/<file>.png
This commit is contained in:
@@ -103,8 +103,14 @@ static void _GenerateWorld()
|
||||
/* Must start economy early because of the costs. */
|
||||
StartupEconomy();
|
||||
|
||||
bool landscape_generated = false;
|
||||
|
||||
/* Don't generate landscape items when in the scenario editor. */
|
||||
if (_gw.mode == GWM_EMPTY) {
|
||||
if (_gw.mode != GWM_EMPTY) {
|
||||
landscape_generated = GenerateLandscape(_gw.mode);
|
||||
}
|
||||
|
||||
if (!landscape_generated) {
|
||||
SetGeneratingWorldProgress(GWP_OBJECT, 1);
|
||||
|
||||
/* Make sure the tiles at the north border are void tiles if needed. */
|
||||
@@ -121,7 +127,6 @@ static void _GenerateWorld()
|
||||
|
||||
_settings_game.game_creation.snow_line_height = DEF_SNOWLINE_HEIGHT;
|
||||
} else {
|
||||
GenerateLandscape(_gw.mode);
|
||||
GenerateClearTile();
|
||||
|
||||
/* Only generate towns, tree and industries in newgame mode. */
|
||||
|
Reference in New Issue
Block a user