diff options
author | rubidium <rubidium@openttd.org> | 2010-08-18 17:06:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-18 17:06:45 +0000 |
commit | 69fa0b36d3bb043858621ac0b32d451674ed2719 (patch) | |
tree | f345c20f27f03cdc6e8fa9b7ddd0803739a83c96 /src/console_cmds.cpp | |
parent | 287ee8c01d900ef15bd434e61607c0f341ec2d7e (diff) | |
download | openttd-69fa0b36d3bb043858621ac0b32d451674ed2719.tar.xz |
(svn r20542) -Codechange: generalise the setting of "p2" to the ClientID.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index cd6546150..1c276ffb5 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -761,7 +761,7 @@ DEF_CONSOLE_CMD(ConResetCompany) } /* It is safe to remove this company */ - DoCommandP(0, 2, index, CMD_COMPANY_CTRL); + DoCommandP(0, 2 | index << 16, 0, CMD_COMPANY_CTRL); IConsolePrint(CC_DEFAULT, "Company deleted."); return true; @@ -1067,7 +1067,7 @@ DEF_CONSOLE_CMD(ConStartAI) } /* Start a new AI company */ - DoCommandP(0, 1, INVALID_COMPANY, CMD_COMPANY_CTRL); + DoCommandP(0, 1 | INVALID_COMPANY << 16, 0, CMD_COMPANY_CTRL); return true; } @@ -1102,8 +1102,8 @@ DEF_CONSOLE_CMD(ConReloadAI) } /* First kill the company of the AI, then start a new one. This should start the current AI again */ - DoCommandP(0, 2, company_id, CMD_COMPANY_CTRL); - DoCommandP(0, 1, company_id, CMD_COMPANY_CTRL); + DoCommandP(0, 2 | company_id << 16, 0, CMD_COMPANY_CTRL); + DoCommandP(0, 1 | company_id << 16, 0, CMD_COMPANY_CTRL); IConsolePrint(CC_DEFAULT, "AI reloaded."); return true; @@ -1139,7 +1139,7 @@ DEF_CONSOLE_CMD(ConStopAI) } /* Now kill the company of the AI. */ - DoCommandP(0, 2, company_id, CMD_COMPANY_CTRL); + DoCommandP(0, 2 | company_id << 16, 0, CMD_COMPANY_CTRL); IConsolePrint(CC_DEFAULT, "AI stopped, company deleted."); return true; |