Misc - Adjust some functions to be more compatible with sqfvm (#8494)

This commit is contained in:
PabstMirror 2021-10-09 15:32:53 -05:00 committed by GitHub
parent fb2b1ceadb
commit d780c02ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 7 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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]));

View File

@ -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);