(svn r24505) -Add: Select the GS tab if all AI tabs are unselectable in the AI debug window.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
zuu 12 years ago
parent d2b93c96e7
commit 468d232ef4

@ -1072,6 +1072,14 @@ struct AIDebugWindow : public QueryStringBaseWindow {
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 */

Loading…
Cancel
Save