forked from 0ad/0ad
Script changes for adding isQueued parameter to issueCommand.
This was SVN commit r4239.
This commit is contained in:
parent
e53242284f
commit
01b02d145d
@ -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.
|
||||||
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ====================================================================
|
// ====================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user