Apply suggestions from code review

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
Ivanowicz 2023-12-04 19:25:09 +01:00 committed by GitHub
parent b8e93e2d28
commit debeb1bb5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -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 {