Fix OnOwnershipChanged missing in ResourceTrickle
This was SVN commit r26135.
This commit is contained in:
parent
e552f1280e
commit
70bd982c85
@ -63,6 +63,12 @@ ResourceTrickle.prototype.OnValueModification = function(msg)
|
||||
this.CheckTimer();
|
||||
};
|
||||
|
||||
ResourceTrickle.prototype.OnOwnershipChanged = function(msg)
|
||||
{
|
||||
if (msg.to != INVALID_PLAYER)
|
||||
this.CheckTimer();
|
||||
};
|
||||
|
||||
ResourceTrickle.prototype.CheckTimer = function()
|
||||
{
|
||||
if (!this.ComputeRates())
|
||||
|
Loading…
Reference in New Issue
Block a user