Mercurial > hg > openttd
changeset 14927:d523ba853433 draft
(svn r19526) -Fix (r19395): clients would crash while connecting to a server with AIs
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 30 Mar 2010 22:37:45 +0000 |
parents | 58f784c2e555 |
children | a0ee2ab9ef18 |
files | src/ai/ai_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1028,6 +1028,9 @@ /** Open the AI debug window if one of the AI scripts has crashed. */ void ShowAIDebugWindowIfAIError() { + /* Network clients can't debug AIs. */ + if (_networking && !_network_server) return; + Company *c; FOR_ALL_COMPANIES(c) { if (c->is_ai && c->ai_instance->IsDead()) {