normalize dependant hitpoints after repairing

This commit is contained in:
commy2 2015-03-11 23:53:08 +01:00
parent 10f56cc4c3
commit 45e79dcbbf
2 changed files with 6 additions and 0 deletions

View File

@ -38,3 +38,6 @@ _vehicle setDamage _damage;
{
_vehicle setHitPointDamage [_x, _hitPointDamages select _forEachIndex];
} forEach _hitPoints;
// normalize hitpoints
[_vehicle] call FUNC(normalizeHitPoints);

View File

@ -74,3 +74,6 @@ _vehicle setDamage _damageNew;
{
_vehicle setHitPointDamage [_x, _hitPointDamages select _forEachIndex];
} forEach _hitPoints;
// normalize hitpoints
[_vehicle] call FUNC(normalizeHitPoints);