Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dart <[email protected]>
  • Loading branch information
PabstMirror and DartRuffian authored Nov 10, 2024
1 parent bd3593a commit 84cf8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_statusEffect_sendEffects.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TRACE_2("params",_object,_effectName);

if (isNull _object) exitWith {};

if (_effectName == "") exitWith { // recurse though all possible effects
if (_effectName == "") exitWith { // Recurse through all possible effects
{
[_object, _x] call FUNC(statusEffect_sendEffects)
} forEach (keys GVAR(statusEffects));
Expand All @@ -31,7 +31,7 @@ if (_effectName == "") exitWith { // recurse though all possible effects
private _effectVarName = format [QGVAR(effect_%1), _effectName];
private _effectNumber = _object getVariable [_effectVarName, -1];

//We only do anything if the effect has been defined at some point in the game for this unit
// We only do anything if the effect has been defined at some point in the game for this unit
TRACE_2("checking if event is nil",_effectName,_effectNumber);
if (_effectNumber != -1) then {
(GVAR(statusEffects) get toLowerANSI _effectName) params ["_isGlobal", "_sendJIP", "_eventName"];
Expand Down

0 comments on commit 84cf8a0

Please sign in to comment.