exchange if order otherwise we can't make a trade route with a damaged market
This was SVN commit r14744.
This commit is contained in:
parent
44eb336dfe
commit
d8152f1eda
@ -275,12 +275,6 @@ function getActionInfo(action, target)
|
||||
data.target = target;
|
||||
cursor = "action-build";
|
||||
}
|
||||
else if (targetState.needsRepair && allyOwned)
|
||||
{
|
||||
data.command = "repair";
|
||||
data.target = target;
|
||||
cursor = "action-repair";
|
||||
}
|
||||
else if (hasClass(entState, "Market") && hasClass(targetState, "Market") && entState.id != targetState.id &&
|
||||
(!hasClass(entState, "NavalMarket") || hasClass(targetState, "NavalMarket")) && !enemyOwned)
|
||||
{
|
||||
@ -306,6 +300,12 @@ function getActionInfo(action, target)
|
||||
tooltip += "\nExpected gain: " + getTradingTooltip(gain);
|
||||
}
|
||||
}
|
||||
else if (targetState.needsRepair && allyOwned)
|
||||
{
|
||||
data.command = "repair";
|
||||
data.target = target;
|
||||
cursor = "action-repair";
|
||||
}
|
||||
|
||||
// Don't allow the rally point to be set on any of the currently selected entities (used for unset)
|
||||
// except if the autorallypoint hotkey is pressed and the target can produce entities
|
||||
|
Loading…
Reference in New Issue
Block a user