diff --git a/addons/common/fnc_headDir.sqf b/addons/common/fnc_headDir.sqf index de21f4fc2..5408be650 100644 --- a/addons/common/fnc_headDir.sqf +++ b/addons/common/fnc_headDir.sqf @@ -76,7 +76,11 @@ if (_unit != call CBA_fnc_currentUnit) then { private _diff = -_azimuth; if !(_offset isEqualTo "") then { +#ifndef LINUX_BUILD ADD(_diff,_unit getDir ([_offset] call CBA_fnc_getPos)); +#else + ADD(_diff,[ARR_2(_unit,[_offset] call CBA_fnc_getPos)] call BIS_fnc_dirTo); +#endif }; if (_diff < 0) then { ADD(_diff,360); diff --git a/addons/common/fnc_headDir_Linux.sqf b/addons/common/fnc_headDir_Linux.sqf new file mode 100644 index 000000000..fbb80205a --- /dev/null +++ b/addons/common/fnc_headDir_Linux.sqf @@ -0,0 +1,2 @@ +#define LINUX_BUILD +#include "fnc_headDir.sqf" diff --git a/addons/linux/CfgFunctions.hpp b/addons/linux/CfgFunctions.hpp index 024944594..9b9270aef 100644 --- a/addons/linux/CfgFunctions.hpp +++ b/addons/linux/CfgFunctions.hpp @@ -10,6 +10,11 @@ class CfgFunctions { }; }; class CBA { + + class Anims { + F_FILEPATH(common,headDir); + }; + class Entities { F_FILEPATH(common,getAlive); F_FILEPATH(common,getMagazineIndex);