forked from 0ad/0ad
Ignore recently-deceased units more gracefully in makePrimarySelection
This was SVN commit r7848.
This commit is contained in:
parent
82b6449f8b
commit
c39c4ac8d3
@ -51,7 +51,7 @@ EntitySelection.prototype.makePrimarySelection = function(primaryIndex, modifier
|
||||
{
|
||||
var entState = Engine.GuiInterfaceCall("GetEntityState", selection[i]);
|
||||
if (!entState)
|
||||
return;
|
||||
continue;
|
||||
if (entState.template == primaryEntState.template)
|
||||
ents.push(selection[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user