1
0
forked from 0ad/0ad

Stop BuildingAI picking up messages for other components' range queries

This was SVN commit r9782.
This commit is contained in:
Ykkrosh 2011-07-07 23:07:36 +00:00
parent e705e366d6
commit 1771545a3b

View File

@ -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)