Set relative hitpoints for completed foundations

Differential Revision: https://code.wildfiregames.com/D1434
Reviewed by: mimo
Comments by: elexis
This was SVN commit r21676.
This commit is contained in:
temple 2018-04-09 03:02:48 +00:00
parent 593a6a228e
commit 4e3dbeeada

View file

@ -401,7 +401,7 @@ Foundation.prototype.Build = function(builderEnt, work)
var cmpBuildingHealth = Engine.QueryInterface(building, IID_Health);
if (cmpBuildingHealth)
cmpBuildingHealth.SetHitpoints(cmpHealth.GetHitpoints());
cmpBuildingHealth.SetHitpoints(progress * cmpBuildingHealth.GetMaxHitpoints());
PlaySound("constructed", building);