forked from mirrors/0ad
Hotfix for 2abd9cead2 - remove the OnEntityRenamed handling.
0363202a20 actually fixed the particular issue of upgrading a long-wall
to a gate by correctly handling it in UnitAI, so this code, which didn't
work, is no longer needed anyways.
Noticed by running units_demo which seems to have skirmish replacer
placeholders.
This was SVN commit r23711.
This commit is contained in:
@@ -20,20 +20,6 @@ Gate.prototype.Init = function()
|
||||
this.locked = false;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle the renaming case (from long-wall to gate)
|
||||
* because that does not trigger ownershipchange or diplomacy change
|
||||
* and units don't get added to the ignorelist.
|
||||
*/
|
||||
Gate.prototype.OnEntityRenamed = function(msg)
|
||||
{
|
||||
let cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
|
||||
if (!cmpOwnership || cmpOwnership.GetOwner() == INVALID_PLAYER)
|
||||
return;
|
||||
|
||||
this.SetupRangeQuery();
|
||||
};
|
||||
|
||||
Gate.prototype.OnOwnershipChanged = function(msg)
|
||||
{
|
||||
if (msg.to != INVALID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user