mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Apply suggestions from code review
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
parent
b8e93e2d28
commit
debeb1bb5d
@ -40,7 +40,7 @@ private _realHitPointCount = 0;
|
|||||||
private _hitPointDamageSumOld = 0;
|
private _hitPointDamageSumOld = 0;
|
||||||
private _hitPointDamageRepaired = 0; //positive for repairs : newSum = (oldSum - repaired)
|
private _hitPointDamageRepaired = 0; //positive for repairs : newSum = (oldSum - repaired)
|
||||||
{
|
{
|
||||||
if (!(_forEachIndex in _selectionsToIgnore) && isNil{_dependsIndexMap get _forEachIndex}) then {
|
if (!(_forEachIndex in _selectionsToIgnore) && !(_forEachIndex in _dependsIndexMap)) then {
|
||||||
_realHitPointCount = _realHitPointCount + 1;
|
_realHitPointCount = _realHitPointCount + 1;
|
||||||
_hitPointDamageSumOld = _hitPointDamageSumOld + (_damageValues select _forEachIndex);
|
_hitPointDamageSumOld = _hitPointDamageSumOld + (_damageValues select _forEachIndex);
|
||||||
if (_forEachIndex == _hitPointIndex) then {
|
if (_forEachIndex == _hitPointIndex) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user