mirror of https://github.com/OpenTTD/OpenTTD
(svn r24505) -Add: Select the GS tab if all AI tabs are unselectable in the AI debug window.
parent
d2b93c96e7
commit
468d232ef4
|
@ -1072,6 +1072,14 @@ struct AIDebugWindow : public QueryStringBaseWindow {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If no AI is available, see if there is a game script. */
|
||||||
|
if (ai_debug_company == INVALID_COMPANY && Game::GetInstance() != NULL) {
|
||||||
|
/* Lower the widget corresponding to the game script. */
|
||||||
|
this->LowerWidget(WID_AID_SCRIPT_GAME);
|
||||||
|
|
||||||
|
ai_debug_company = OWNER_DEITY;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update "Reload AI" and "AI settings" buttons */
|
/* Update "Reload AI" and "AI settings" buttons */
|
||||||
|
|
Loading…
Reference in New Issue