diff options
author | rubidium <rubidium@openttd.org> | 2012-01-02 22:44:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-01-02 22:44:28 +0000 |
commit | d2f776ef3ee7bd78eb1daec310f3e253b8323ea0 (patch) | |
tree | a2bd78f0098c6b405fa3a0bd0e700546a06a47e3 /src/ai | |
parent | 8371ecc9229c91066d0d933020598b07ad3e4400 (diff) | |
download | openttd-d2f776ef3ee7bd78eb1daec310f3e253b8323ea0.tar.xz |
(svn r23720) -Fix/Feature [FS#4935]: show the script debug window also when the game script crashes
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 1843906b6..f60233077 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1321,4 +1321,9 @@ void ShowAIDebugWindowIfAIError() break; } } + + GameInstance *g = Game::GetGameInstance(); + if (g != NULL && g->IsDead()) { + ShowAIDebugWindow(OWNER_DEITY); + } } |