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 committed Nov 4, 2017
1 parent d3e2634 commit f53504b
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
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
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
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
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
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 f53504b

Please sign in to comment.