Skip to content

Commit

Permalink
Spectator - Fix script error in ui_draw3d (#5722)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Nov 4, 2017
1 parent 96d9786 commit c20ec65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions addons/spectator/functions/fnc_cam.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "script_component.hpp"

params ["_init"];
TRACE_1("cam",_init);

// No change
if (_init isEqualTo !isNil QGVAR(camera)) exitWith {};
Expand Down
1 change: 1 addition & 0 deletions addons/spectator/functions/fnc_respawnTemplate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "script_component.hpp"

params [["_newCorpse",objNull,[objNull]], ["_oldKiller",objNull,[objNull]], ["_respawn",0,[0]], ["_respawnDelay",0,[0]]];
TRACE_4("respawnTemplate",_newCorpse,_oldKiller,_respawn,_respawnDelay);

// Compatibility handled via spectator display XEH
if (_respawn in [0,1,4,5]) exitWith {
Expand Down
1 change: 1 addition & 0 deletions addons/spectator/functions/fnc_setSpectator.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ if (_set) then {
// Hide/Unhide the player if enabled and alive
if (alive player) then {
private _hidden = (_hide && _set);
TRACE_1("",_hidden);

// Ignore damage (vanilla and ace_medical)
player allowDamage !_hidden;
Expand Down
1 change: 1 addition & 0 deletions addons/spectator/functions/fnc_ui.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "script_component.hpp"

params ["_init"];
TRACE_1("ui",_init);

// No change
if (_init isEqualTo !isNull SPEC_DISPLAY) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/spectator/functions/fnc_ui_draw3D.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define HEIGHT_OFFSET 1.5

BEGIN_COUNTER(updateCursor);
private _camTarget = GVAR(camFocus);
private _camTarget = missionNamespace getVariable [QGVAR(camFocus), objNull];
private _camTargetVeh = vehicle _camTarget;
private _cursorObject = objNull;

Expand Down

0 comments on commit c20ec65

Please sign in to comment.