1
0
forked from 0ad/0ad

Fix OnOwnershipChanged missing in ResourceTrickle

This was SVN commit r26135.
This commit is contained in:
Angen 2021-12-28 10:03:49 +00:00
parent e552f1280e
commit 70bd982c85

View File

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