From 69fa0b36d3bb043858621ac0b32d451674ed2719 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 18 Aug 2010 17:06:45 +0000 Subject: (svn r20542) -Codechange: generalise the setting of "p2" to the ClientID. --- src/console_cmds.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/console_cmds.cpp') 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; -- cgit v1.2.3-54-g00ecf