mirror of
https://github.com/glest/glest-source.git
synced 2025-10-03 02:41:50 +02:00
- bugfix for loading scenarios with their own techs
- all scenario errors are now caught and shown in a messagebox and game can continue.
This commit is contained in:
@@ -379,6 +379,8 @@ void MenuStateScenario::launchGame() {
|
||||
GameSettings gameSettings;
|
||||
loadGameSettings(&scenarioInfo, &gameSettings);
|
||||
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d] gameSettings.getScenarioDir() [%s]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,gameSettings.getScenarioDir().c_str());
|
||||
|
||||
const vector<string> pathTechList = Config::getInstance().getPathListForType(ptTechs,gameSettings.getScenarioDir());
|
||||
if(TechTree::exists(gameSettings.getTech(), pathTechList) == false) {
|
||||
char szBuf[8096]="";
|
||||
|
Reference in New Issue
Block a user