# HG changeset patch # User truebrain # Date 1213133441 0 # Node ID 970651c2e670b5fb32728905bd650d24b4375fff # Parent 57b380ee1607be342086eac484209f5726fbd1cb (svn r13454) [NoAI] -Fix: kill all AIs when leaving game in any way (restart, loadgame, ..) (tnx Yexo for reporting, and glx for fixing) diff -r 57b380ee1607 -r 970651c2e670 src/openttd.cpp --- a/src/openttd.cpp Tue Jun 10 21:00:02 2008 +0000 +++ b/src/openttd.cpp Tue Jun 10 21:30:41 2008 +0000 @@ -865,6 +865,8 @@ } } #endif /* ENABLE_NETWORK */ + /* Make sure all AI controllers are gone at quiting game */ + if (new_mode != SM_SAVE) AI_KillAll(); switch (new_mode) { case SM_EDITOR: /* Switch to scenario editor */ @@ -943,7 +945,6 @@ } case SM_MENU: /* Switch to game intro menu */ - AI_KillAll(); LoadIntroGame(); break;