mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-21 07:43:59 -07: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:
parent
593a6a228e
commit
4e3dbeeada
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue