0-population units (e.g. sheep) should never have production blocked.
This was SVN commit r12463.
This commit is contained in:
parent
77f26c454a
commit
9519635869
@ -75,7 +75,7 @@ Player.prototype.GetColour = function()
|
|||||||
|
|
||||||
Player.prototype.TryReservePopulationSlots = function(num)
|
Player.prototype.TryReservePopulationSlots = function(num)
|
||||||
{
|
{
|
||||||
if (num > (this.GetPopulationLimit() - this.GetPopulationCount()))
|
if (num != 0 && num > (this.GetPopulationLimit() - this.GetPopulationCount()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
this.popUsed += num;
|
this.popUsed += num;
|
||||||
|
Loading…
Reference in New Issue
Block a user