forked from 0ad/0ad
Stop BuildingAI picking up messages for other components' range queries
This was SVN commit r9782.
This commit is contained in:
parent
e705e366d6
commit
1771545a3b
@ -86,6 +86,9 @@ BuildingAI.prototype.SetupRangeQuery = function(owner)
|
||||
*/
|
||||
BuildingAI.prototype.OnRangeUpdate = function(msg)
|
||||
{
|
||||
if (msg.tag != this.enemyUnitsQuery)
|
||||
return;
|
||||
|
||||
if (msg.added.length > 0)
|
||||
{
|
||||
for each (var entity in msg.added)
|
||||
@ -165,4 +168,4 @@ BuildingAI.prototype.FireArrows = function()
|
||||
}
|
||||
};
|
||||
|
||||
Engine.RegisterComponentType(IID_BuildingAI, "BuildingAI", BuildingAI);
|
||||
Engine.RegisterComponentType(IID_BuildingAI, "BuildingAI", BuildingAI);
|
||||
|
Loading…
Reference in New Issue
Block a user