summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-19 23:38:51 +0000
committeryexo <yexo@openttd.org>2009-03-19 23:38:51 +0000
commit4b8d1a58a21a6678e6f84ba0f86c2c15959d5209 (patch)
treefac92b5cc8f04954e786ca52bc780690d3f8ba93
parentf524d3996385d089e619fa28d4719506db062e26 (diff)
downloadopenttd-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.cpp4
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()