1
0
forked from 0ad/0ad

# Make pop bonuses increase the pop limit, not decrease

This was SVN commit r7434.
This commit is contained in:
Ykkrosh 2010-04-04 20:52:21 +00:00
parent 992d0b04c1
commit bddb73af13

View File

@ -62,7 +62,7 @@ Player.prototype.OnGlobalOwnershipChanged = function(msg)
if (cost)
{
this.popCount -= cost.GetPopCost();
this.popLimit += cost.GetPopBonus();
this.popLimit -= cost.GetPopBonus();
}
}
@ -72,7 +72,7 @@ Player.prototype.OnGlobalOwnershipChanged = function(msg)
if (cost)
{
this.popCount += cost.GetPopCost();
this.popLimit -= cost.GetPopBonus();
this.popLimit += cost.GetPopBonus();
}
}
};