mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-20 10:56:19 +01:00
(svn r20575) -Fix [FS#4059] (r20542): reloading of companies did load another AI
This commit is contained in:
parent
1fa98e1695
commit
1231dc7b57
@ -960,8 +960,8 @@ struct AIDebugWindow : public QueryStringBaseWindow {
|
|||||||
switch (widget) {
|
switch (widget) {
|
||||||
case AID_WIDGET_RELOAD_TOGGLE:
|
case AID_WIDGET_RELOAD_TOGGLE:
|
||||||
/* First kill the company of the AI, then start a new one. This should start the current AI again */
|
/* First kill the company of the AI, then start a new one. This should start the current AI again */
|
||||||
DoCommandP(0, 2, ai_debug_company, CMD_COMPANY_CTRL);
|
DoCommandP(0, 2 | ai_debug_company << 16, 0, CMD_COMPANY_CTRL);
|
||||||
DoCommandP(0, 1, ai_debug_company, CMD_COMPANY_CTRL);
|
DoCommandP(0, 1 | ai_debug_company << 16, 0, CMD_COMPANY_CTRL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AID_WIDGET_SETTINGS:
|
case AID_WIDGET_SETTINGS:
|
||||||
|
Loading…
Reference in New Issue
Block a user