diff options
author | yexo <yexo@openttd.org> | 2009-03-14 01:32:04 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-14 01:32:04 +0000 |
commit | 2e6e2457f12b272716cfc738dee4694fbe4b65a5 (patch) | |
tree | 803a796c56b975672dd32730cba95657ef40a7b5 /src/ai/ai_instance.cpp | |
parent | 0ca92a47a213b2640cc702ddffa173f056f30cf6 (diff) | |
download | openttd-2e6e2457f12b272716cfc738dee4694fbe4b65a5.tar.xz |
(svn r15708) -Feature [FS#2728]: Pop up the AI Debug Window if one of the AIs crashed and show a message that the user should report the crash.
Diffstat (limited to 'src/ai/ai_instance.cpp')
-rw-r--r-- | src/ai/ai_instance.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 7bd093867..fd4488521 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -7,6 +7,7 @@ #include "../settings_type.h" #include "../vehicle_base.h" #include "../saveload/saveload.h" +#include "../gui.h" #include "table/strings.h" #include <squirrel.h> @@ -20,6 +21,7 @@ #include "ai_info.hpp" #include "ai_storage.hpp" #include "ai_instance.hpp" +#include "ai_gui.hpp" /* Convert all AI related classes to Squirrel data. * Note: this line a marker in squirrel_export.sh. Do not change! */ @@ -251,6 +253,9 @@ void AIInstance::Died() delete this->engine; this->instance = NULL; this->engine = NULL; + + ShowAIDebugWindow(_current_company); + ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0); } void AIInstance::GameLoop() |