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:
@@ -204,8 +204,8 @@ void VideoDriver_Dedicated::MainLoop()
|
||||
_network_dedicated = true;
|
||||
_current_company = _local_company = COMPANY_SPECTATOR;
|
||||
|
||||
/* If SwitchMode is SM_LOAD_GAME, it means that the user used the '-g' options */
|
||||
if (_switch_mode != SM_LOAD_GAME) {
|
||||
/* If SwitchMode is SM_LOAD_GAME / SM_START_HEIGHTMAP, it means that the user used the '-g' options */
|
||||
if (_switch_mode != SM_LOAD_GAME && _switch_mode != SM_START_HEIGHTMAP) {
|
||||
StartNewGameWithoutGUI(GENERATE_NEW_SEED);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user