mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-04 17:06:26 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user