mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 07:13:08 +00:00
Ignore recently-deceased units more gracefully in makePrimarySelection
This was SVN commit r7848.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user