mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix alt/lat for maps not defined in getMapData
This commit is contained in:
@ -23,8 +23,10 @@ private _lat = getNumber (configFile >> "CfgWorlds" >> _map >> "latitude");
|
|||||||
private _altitude = getNumber (configFile >> "CfgWorlds" >> _map >> "elevationOffset");
|
private _altitude = getNumber (configFile >> "CfgWorlds" >> _map >> "elevationOffset");
|
||||||
|
|
||||||
private _mapData = _map call FUNC(getMapData);
|
private _mapData = _map call FUNC(getMapData);
|
||||||
_lat = _mapData select 0;
|
if (!(_mapData isEqualTo [])) then {
|
||||||
_alt = _mapData select 1;
|
_lat = _mapData select 0;
|
||||||
|
_alt = _mapData select 1;
|
||||||
|
};
|
||||||
TRACE_2("Latitude and Altitude",_lat,_alt);
|
TRACE_2("Latitude and Altitude",_lat,_alt);
|
||||||
|
|
||||||
private _UTM = [_long, _lat] call BIS_fnc_posDegToUTM;
|
private _UTM = [_long, _lat] call BIS_fnc_posDegToUTM;
|
||||||
|
@ -94,4 +94,4 @@ if (_map in ["stratis"]) exitWith { [40, 0] };
|
|||||||
if (_map in ["xcam_prototype"]) exitWith { [35, 0] };
|
if (_map in ["xcam_prototype"]) exitWith { [35, 0] };
|
||||||
if (_map in ["zargabad"]) exitWith { [35, 2000] };
|
if (_map in ["zargabad"]) exitWith { [35, 2000] };
|
||||||
|
|
||||||
[0, 0]
|
[] //Return empty array if we have no specific data for the map
|
||||||
|
Reference in New Issue
Block a user