From 4834facccf64ab01443362c0220be2155e9e7358 Mon Sep 17 00:00:00 2001 From: commy2 Date: Wed, 8 Apr 2015 00:30:36 +0200 Subject: [PATCH] moving it to map --- addons/common/XEH_preInit.sqf | 10 ---------- addons/map/XEH_postInitClient.sqf | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/addons/common/XEH_preInit.sqf b/addons/common/XEH_preInit.sqf index 98b0d17c7d..b7da27ea75 100644 --- a/addons/common/XEH_preInit.sqf +++ b/addons/common/XEH_preInit.sqf @@ -283,16 +283,6 @@ if (hasInterface) then { ["playerChanged", [ACE_player, _oldPlayer]] call FUNC(localEvent); }; }, 0, []] call cba_fnc_addPerFrameHandler; - - // doesn't work on postInit in SP - ["mapDisplayLoaded", { - //hint str _this; systemChat str _this; diag_log str _this; - - if (_this select 1 == "ingame") then { - ((_this select 0) displayCtrl 1016) ctrlShow false; - }; - }] call FUNC(addEventhandler); - }; // Init toHex diff --git a/addons/map/XEH_postInitClient.sqf b/addons/map/XEH_postInitClient.sqf index ccaf9041ab..778b1c8191 100644 --- a/addons/map/XEH_postInitClient.sqf +++ b/addons/map/XEH_postInitClient.sqf @@ -19,4 +19,13 @@ call FUNC(determineZoom); ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}]; }; +// doesn't work on postInit in SP +["mapDisplayLoaded", { + hint str _this; systemChat str _this; diag_log str _this;// + + if (_this select 1 == "ingame") then { + ((_this select 0) displayCtrl 1016) ctrlShow false; + }; +}] call FUNC(addEventhandler); + ADDON = true;