mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Maptools - Fix gps detection (#10007)
* Maptools - Fix gps detection * Use `infoPanelComponents` Co-Authored-By: johnb432 <58661205+johnb432@users.noreply.github.com> --------- Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
b26d6543a6
commit
a31608073e
@ -17,8 +17,7 @@
|
|||||||
|
|
||||||
if (!visibleMap || {!alive ACE_player}) exitWith {false};
|
if (!visibleMap || {!alive ACE_player}) exitWith {false};
|
||||||
|
|
||||||
private _gpsOpened = visibleGPS;
|
private _panels = flatten (ACE_player infoPanelComponents "left");
|
||||||
private _gpsAvailable = openGPS true;
|
private _index = _panels find "MinimapDisplayComponent";
|
||||||
if (!_gpsOpened) then {openGPS false};
|
|
||||||
|
|
||||||
_gpsAvailable // return
|
_index != -1 && {_panels select (_index + 1)}
|
||||||
|
Loading…
Reference in New Issue
Block a user