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 | d2dae07595d1fd61ad9714e970a44d38c8fb0ac1 (patch) | |
tree | fac92b5cc8f04954e786ca52bc780690d3f8ba93 /src/ai | |
parent | ee4a660b0c7e308213c72a861102914978d111a6 (diff) | |
download | openttd-d2dae07595d1fd61ad9714e970a44d38c8fb0ac1.tar.xz |
(svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI.
Diffstat (limited to 'src/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() |