diff options
author | yexo <yexo@openttd.org> | 2010-01-29 21:38:55 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-29 21:38:55 +0000 |
commit | 4c4d1e1bf6c5e6c4678eeb52b263b6119a531fcf (patch) | |
tree | 3ca424f7d3bdded261b7822dbeab519595d69c5c /src/ai/ai_core.cpp | |
parent | dc714960e3699144fcd39a13460b0a8f9fd0ca4d (diff) | |
download | openttd-4c4d1e1bf6c5e6c4678eeb52b263b6119a531fcf.tar.xz |
(svn r18953) -Feature: [NoAI] allow editing AI settings while an AI is running
Only settings with the AICONFIG_INGAME flag can be editted in this way
Diffstat (limited to 'src/ai/ai_core.cpp')
-rw-r--r-- | src/ai/ai_core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp index cc6ef746c..fcba313a3 100644 --- a/src/ai/ai_core.cpp +++ b/src/ai/ai_core.cpp @@ -105,6 +105,7 @@ _current_company = old_company; InvalidateWindowData(WC_AI_DEBUG, 0, -1); + DeleteWindowById(WC_AI_SETTINGS, company); } /* static */ void AI::KillAll() |