mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 20:11:55 +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:
1 parent
593a6a228e
commit
4e3dbeeada
1 file changed
+1
-1
@@ -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