1
0
forked from mirrors/0ad

Fix IsInjured call on miraged entities.

ea208f19a3 introduced an "IsInjured" function, used in the GUIInterface.
Mirages must mock this function and this was missed in the original
diff.

Tested By: wowgetoffyourcellphone
Differential Revision: https://code.wildfiregames.com/D2018
This was SVN commit r22411.
This commit is contained in:
wraitii
2019-06-29 17:17:07 +00:00
parent 445a5d8855
commit 56ed4c1dc8
@@ -24,6 +24,7 @@ Mirage.prototype.Init = function()
this.hitpoints = null;
this.repairable = null;
this.unhealable = null;
this.IsInjured = null;
this.capturePoints = [];
this.maxCapturePoints = 0;
@@ -104,12 +105,14 @@ Mirage.prototype.CopyHealth = function(cmpHealth)
this.maxHitpoints = cmpHealth.GetMaxHitpoints();
this.hitpoints = cmpHealth.GetHitpoints();
this.repairable = cmpHealth.IsRepairable();
this.injured = cmpHealth.IsInjured();
this.unhealable = cmpHealth.IsUnhealable();
};
Mirage.prototype.GetMaxHitpoints = function() { return this.maxHitpoints; };
Mirage.prototype.GetHitpoints = function() { return this.hitpoints; };
Mirage.prototype.IsRepairable = function() { return this.repairable; };
Mirage.prototype.IsInjured = function() { return this.injured; };
Mirage.prototype.IsUnhealable = function() { return this.unhealable; };
// Capture data