Skip to content

Commit

Permalink
Fix false return
Browse files Browse the repository at this point in the history
  • Loading branch information
DartRuffian authored Jan 13, 2025
1 parent 4cc2d08 commit be7e1c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/goggles/functions/fnc_applyCrackEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

if (GETBROKEN) exitWith { true };
scopeName "main";

private _unit = ACE_player;
private _config = configFile >> "CfgGlasses" >> goggles _unit;
Expand All @@ -31,7 +32,9 @@ _effects set [BROKEN, true];
SETGLASSES(_unit,_effects);

if (getText (_config >> "ACE_OverlayCracked") != "") then {
if ([] call FUNC(externalCamera)) exitWith { false };
if ([] call FUNC(externalCamera)) exitWith {
false breakout "main";

Check notice on line 36 in addons/goggles/functions/fnc_applyCrackEffect.sqf

View workflow job for this annotation

GitHub Actions / windows

`breakout` does not match the wiki's case

non-standard command case
};
if (isNull (GLASSDISPLAY)) then {
GVAR(GogglesLayer) cutRsc ["RscACE_Goggles", "PLAIN", 1, false, false];
};
Expand Down

0 comments on commit be7e1c1

Please sign in to comment.