mirror of https://github.com/OpenTTD/OpenTTD
(svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI.
parent
ee4a660b0c
commit
d2dae07595
|
@ -255,7 +255,9 @@ void AIInstance::Died()
|
||||||
this->engine = NULL;
|
this->engine = NULL;
|
||||||
|
|
||||||
ShowAIDebugWindow(_current_company);
|
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()
|
void AIInstance::GameLoop()
|
||||||
|
|
Loading…
Reference in New Issue