1
0
forked from 0ad/0ad

Shift-clicking the control group button adds to selection. Patch by mk12. Fixes #1345.

Add AI to Battle for the Tiber map.

This was SVN commit r11662.
This commit is contained in:
leper 2012-04-24 15:58:02 +00:00
parent 770ee1f30c
commit e6cb5fade6
2 changed files with 3 additions and 3 deletions

View File

@ -327,7 +327,7 @@ function updateGroups()
button.hidden = true;
else
button.hidden = false;
button.onpress = (function(i) { return function() { performGroup("select", i); } })(i);
button.onpress = (function(i) { return function() { performGroup((Engine.HotkeyIsPressed("selection.add") ? "add" : "select"), i); } })(i);
button.ondoublepress = (function(i) { return function() { performGroup("snap", i); } })(i);
}
var numButtons = i;

Binary file not shown.