(svn r13454) [NoAI] -Fix: kill all AIs when leaving game in any way (restart, loadgame, ..) (tnx Yexo for reporting, and glx for fixing)
--- 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;