From a7d94895550ae0a20a48ae032308cc6d3c7211f5 Mon Sep 17 00:00:00 2001 From: jonpas Date: Sun, 21 Jun 2015 21:08:37 +0200 Subject: [PATCH] Fixed map module init, Prevented BFT execution on Headless, Changed BFT Enabled string --- addons/map/XEH_postInitClient.sqf | 3 +++ addons/map/functions/fnc_moduleMap.sqf | 2 +- addons/map/stringtable.xml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/map/XEH_postInitClient.sqf b/addons/map/XEH_postInitClient.sqf index c06993bded..8c46744088 100644 --- a/addons/map/XEH_postInitClient.sqf +++ b/addons/map/XEH_postInitClient.sqf @@ -18,6 +18,9 @@ call FUNC(determineZoom); ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}]; }; +// Client only from here +if !(hasInterface) exitWith {}; + ["SettingsInitialized", { // Start Blue Force Tracking if Enabled if (GVAR(BFT_Enabled)) then { diff --git a/addons/map/functions/fnc_moduleMap.sqf b/addons/map/functions/fnc_moduleMap.sqf index 523b58131b..514d2af034 100644 --- a/addons/map/functions/fnc_moduleMap.sqf +++ b/addons/map/functions/fnc_moduleMap.sqf @@ -10,7 +10,7 @@ */ #include "script_component.hpp" -if !(hasInterface) exitWith {}; +if !(isServer) exitWith {}; PARAMS_3(_logic,_units,_activated); diff --git a/addons/map/stringtable.xml b/addons/map/stringtable.xml index 255ef400fe..930baf7835 100644 --- a/addons/map/stringtable.xml +++ b/addons/map/stringtable.xml @@ -78,7 +78,7 @@ Blue Force Tracking - Enable + BFT Enable Enable Blue Force Tracking. Default: No