diff options
author | yexo <yexo@openttd.org> | 2009-03-19 23:38:51 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-19 23:38:51 +0000 |
commit | 4b8d1a58a21a6678e6f84ba0f86c2c15959d5209 (patch) | |
tree | fac92b5cc8f04954e786ca52bc780690d3f8ba93 | |
parent | f524d3996385d089e619fa28d4719506db062e26 (diff) | |
download | openttd-4b8d1a58a21a6678e6f84ba0f86c2c15959d5209.tar.xz |
(svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI.
-rw-r--r-- | src/ai/ai_instance.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index fd4488521..03f6b67ba 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -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() |