Skip to content

Commit

Permalink
Spectator - Remove spectator lights when exiting spectator (#10114)
Browse files Browse the repository at this point in the history
Remove spectator lights when exiting spectator
  • Loading branch information
johnb432 authored Jul 17, 2024
1 parent 66c3192 commit f4272f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/spectator/functions/fnc_cam.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ if (_init) then {
GVAR(camDummy) = nil;

// Stop tracking everything
{ deleteVehicle _x; } forEach GVAR(camLights);
GVAR(camLights) = nil;

GVAR(camMode) = nil;
GVAR(camVision) = nil;
GVAR(camFocus) = nil;
Expand All @@ -144,6 +147,5 @@ if (_init) then {
GVAR(camYaw) = nil;
GVAR(camPitch) = nil;
GVAR(camSlow) = nil;
GVAR(camLights) = nil;
GVAR(camLight) = nil;
};

0 comments on commit f4272f0

Please sign in to comment.