mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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:
parent
2abd9cead2
commit
b4144dc2c3
1 changed files with 0 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue