From 4e09681c9edb5774036d94356bf59ec9b63d2070 Mon Sep 17 00:00:00 2001 From: VKing Date: Sun, 10 May 2015 18:10:03 +0200 Subject: [PATCH] Added getMGRSdata to PostInit --- addons/common/XEH_postInit.sqf | 3 +++ addons/common/XEH_preInit.sqf | 2 +- .../functions/{fnc_getMGRSzone.sqf => fnc_getMGRSdata.sqf} | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename addons/common/functions/{fnc_getMGRSzone.sqf => fnc_getMGRSdata.sqf} (100%) diff --git a/addons/common/XEH_postInit.sqf b/addons/common/XEH_postInit.sqf index 696aa16f9b..3eda03b4a7 100644 --- a/addons/common/XEH_postInit.sqf +++ b/addons/common/XEH_postInit.sqf @@ -238,6 +238,9 @@ GVAR(OldIsCamera) = false; {!((_this select 0) isEqualTo (_this select 1)) && {vehicle (_this select 0) == vehicle (_this select 1)}} }] call FUNC(addCanInteractWithCondition); +// Find MGRS zone and 100km grid for current map +[] call FUNC(getMGRSdata); + // Lastly, do JIP events // JIP Detection and event trigger. Run this at the very end, just in case anything uses it if(isMultiplayer && { time > 0 || isNull player } ) then { diff --git a/addons/common/XEH_preInit.sqf b/addons/common/XEH_preInit.sqf index e44b034416..9de99b9ea6 100644 --- a/addons/common/XEH_preInit.sqf +++ b/addons/common/XEH_preInit.sqf @@ -68,7 +68,7 @@ PREP(getGunner); PREP(getInPosition); PREP(getMapGridFromPos); PREP(getMarkerType); -PREP(getMGRSzone); +PREP(getMGRSdata); PREP(getName); PREP(getNumberFromMissionSQM); PREP(getNumberMagazinesIn); diff --git a/addons/common/functions/fnc_getMGRSzone.sqf b/addons/common/functions/fnc_getMGRSdata.sqf similarity index 100% rename from addons/common/functions/fnc_getMGRSzone.sqf rename to addons/common/functions/fnc_getMGRSdata.sqf