mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 12:51:37 +00:00
# Make pop bonuses increase the pop limit, not decrease
This was SVN commit r7434.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user