1
0
Fork 0

(svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI.

release/1.0
yexo 2009-03-19 23:38:51 +00:00
parent ee4a660b0c
commit d2dae07595
1 changed files with 3 additions and 1 deletions

View File

@ -255,7 +255,9 @@ void AIInstance::Died()
this->engine = NULL;
ShowAIDebugWindow(_current_company);
ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0);
if (strcmp(GetCompany(_current_company)->ai_info->GetMainScript(), "%_dummy") != 0) {
ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0);
}
}
void AIInstance::GameLoop()