From 2e6e2457f12b272716cfc738dee4694fbe4b65a5 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 14 Mar 2009 01:32:04 +0000 Subject: (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. --- src/ai/ai_instance.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ai/ai_instance.cpp') 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 @@ -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() -- cgit v1.2.3-54-g00ecf