forked from mirrors/0ad
gives repair a lower priority compared to capture, fixes #3443
This was SVN commit r17342.
This commit is contained in:
@@ -292,7 +292,7 @@ function determineAction(x, y, fromMinimap)
|
||||
// if two actions are possible, the first one is taken
|
||||
// so the most specific should appear first
|
||||
var actions = Object.keys(unitActions).slice();
|
||||
actions.sort(function(a, b) {return unitActions[a].specificness - unitActions[b].specificness;});
|
||||
actions.sort((a, b) => unitActions[a].specificness - unitActions[b].specificness);
|
||||
|
||||
var actionInfo = undefined;
|
||||
if (preSelectedAction != ACTION_NONE)
|
||||
|
||||
@@ -230,7 +230,7 @@ var unitActions =
|
||||
return {"type": "build", "cursor": "action-repair", "target": target};
|
||||
return false;
|
||||
},
|
||||
"specificness": 4,
|
||||
"specificness": 15,
|
||||
},
|
||||
|
||||
"gather":
|
||||
|
||||
Reference in New Issue
Block a user