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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user