Script changes for adding isQueued parameter to issueCommand.

This was SVN commit r4239.
This commit is contained in:
Matei 2006-08-25 04:23:27 +00:00
parent e53242284f
commit 01b02d145d
2 changed files with 3 additions and 3 deletions

View File

@ -462,10 +462,10 @@ function updateTab (tab, type, cellSheet, attribute, attribute2, arrayCells)
{ {
case "train": case "train":
// TODO: Remove this item from the production queue if right-clicked. // TODO: Remove this item from the production queue if right-clicked.
issueCommand(selection, NMT_Produce, PRODUCTION_TRAiN, ""+(Crd[getCrd (this.name, true)].entity)); issueCommand(selection, true, NMT_Produce, PRODUCTION_TRAiN, ""+(Crd[getCrd (this.name, true)].entity));
case "research": case "research":
// TODO: Remove this item from the production queue if right-clicked. // TODO: Remove this item from the production queue if right-clicked.
issueCommand(selection, NMT_Produce, PRODUCTION_RESEARCH, ""+(Crd[getCrd (this.name, true)].entity.name)); issueCommand(selection, true, NMT_Produce, PRODUCTION_RESEARCH, ""+(Crd[getCrd (this.name, true)].entity.name));
break; break;
case "barter": case "barter":
// Buy a quantity of this resource if left-clicked. // Buy a quantity of this resource if left-clicked.

View File

@ -118,7 +118,7 @@ function worldClickHandler(event)
else else
setSelectionRun(); setSelectionRun();
issueCommand (selection, cmd, args[0], args[1]); issueCommand (selection, isOrderQueued(), cmd, args[0], args[1]);
} }
// ==================================================================== // ====================================================================