mirror of https://github.com/OpenTTD/OpenTTD
(svn r19526) -Fix (r19395): clients would crash while connecting to a server with AIs
parent
02fb92dc83
commit
f97a41040f
|
@ -1028,6 +1028,9 @@ void InitializeAIGui()
|
||||||
/** Open the AI debug window if one of the AI scripts has crashed. */
|
/** Open the AI debug window if one of the AI scripts has crashed. */
|
||||||
void ShowAIDebugWindowIfAIError()
|
void ShowAIDebugWindowIfAIError()
|
||||||
{
|
{
|
||||||
|
/* Network clients can't debug AIs. */
|
||||||
|
if (_networking && !_network_server) return;
|
||||||
|
|
||||||
Company *c;
|
Company *c;
|
||||||
FOR_ALL_COMPANIES(c) {
|
FOR_ALL_COMPANIES(c) {
|
||||||
if (c->is_ai && c->ai_instance->IsDead()) {
|
if (c->is_ai && c->ai_instance->IsDead()) {
|
||||||
|
|
Loading…
Reference in New Issue