mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Misc - Adjust some functions to be more compatible with sqfvm (#8494)
This commit is contained in:
parent
fb2b1ceadb
commit
d780c02ef1
@ -22,7 +22,7 @@ private _maps = configProperties [configFile >> "CfgWorldList", "(isClass _x)",
|
||||
};
|
||||
|
||||
// Test MGRS grid step size (from ace_common_fnc_getMapGridData)
|
||||
private _zoomMax = 1e99;
|
||||
private _zoomMax = 1e38;
|
||||
private _formatX = "";
|
||||
private _formatY = "";
|
||||
private _stepX = 1e10;
|
||||
|
@ -23,7 +23,7 @@ GVAR(mapGridData) = [];
|
||||
private _cfgGrid = configFile >> "CfgWorlds" >> worldName >> "Grid";
|
||||
private _offsetX = getNumber (_cfgGrid >> "offsetX");
|
||||
private _offsetY = getNumber (_cfgGrid >> "offsetY");
|
||||
private _zoomMax = 1e99;
|
||||
private _zoomMax = 1e38;
|
||||
private _formatX = "";
|
||||
private _formatY = "";
|
||||
private _stepX = 1e10;
|
||||
|
@ -56,7 +56,7 @@ if (_isLocal) then {
|
||||
/*
|
||||
// Not sure if this is even needed, idea is that on locality transfer we broadcast more up to date info
|
||||
|
||||
private _lastTimeUpdated = _unit getVariable [QEGVAR(medical_vitals,lastTimeUpdated), 1e99];
|
||||
private _lastTimeUpdated = _unit getVariable [QEGVAR(medical_vitals,lastTimeUpdated), 1e38];
|
||||
private _deltaT = CBA_missionTime - _lastTimeUpdated;
|
||||
TRACE_1("not local",_deltaT);
|
||||
if (_deltaT < 5) then {
|
||||
|
@ -23,7 +23,7 @@ params [["_unit", objNull, [objNull]], ["_sink", objNull, [objNull]], ["_startin
|
||||
|
||||
|
||||
private _bestPosASL = [];
|
||||
private _bestPosDistance = 1e99;
|
||||
private _bestPosDistance = 1e38;
|
||||
private _viewPos = _startingPosASL vectorAdd (((positionCameraToWorld [0,0,0]) vectorFromTo (positionCameraToWorld [0,0,1])) vectorMultiply 3);
|
||||
private _modelVector = _startingPosASL vectorFromTo (AGLtoASL (_sink modelToWorld [0,0,0]));
|
||||
private _modelVectorLow = _startingPosASL vectorFromTo (AGLtoASL (_sink modelToWorld [0,0,-1]));
|
||||
|
@ -35,9 +35,7 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
|
||||
// On changing settings
|
||||
["CBA_SettingChanged", {
|
||||
params ["_name", "_value"];
|
||||
|
||||
private _delimPos = count QUOTE(DOUBLES(ADDON,));
|
||||
if (_name select [0, _delimPos] != QUOTE(DOUBLES(ADDON,))) exitWith {};
|
||||
if (_name select [0, 7] != "ace_ui_") exitWith {};
|
||||
|
||||
if (_name in ELEMENTS_BASIC) then {
|
||||
[true] call FUNC(setElements);
|
||||
|
Loading…
Reference in New Issue
Block a user