Fixed map module init, Prevented BFT execution on Headless, Changed BFT Enabled string

This commit is contained in:
jonpas 2015-06-21 21:08:37 +02:00
parent 4f35e10afa
commit a7d9489555
3 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,9 @@ call FUNC(determineZoom);
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}]; ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}];
}; };
// Client only from here
if !(hasInterface) exitWith {};
["SettingsInitialized", { ["SettingsInitialized", {
// Start Blue Force Tracking if Enabled // Start Blue Force Tracking if Enabled
if (GVAR(BFT_Enabled)) then { if (GVAR(BFT_Enabled)) then {

View File

@ -10,7 +10,7 @@
*/ */
#include "script_component.hpp" #include "script_component.hpp"
if !(hasInterface) exitWith {}; if !(isServer) exitWith {};
PARAMS_3(_logic,_units,_activated); PARAMS_3(_logic,_units,_activated);

View File

@ -78,7 +78,7 @@
<Czech>Blue Force Tracking</Czech> <Czech>Blue Force Tracking</Czech>
</Key> </Key>
<Key ID="STR_ACE_Map_BFT_Enabled_DisplayName"> <Key ID="STR_ACE_Map_BFT_Enabled_DisplayName">
<English>Enable</English> <English>BFT Enable</English>
</Key> </Key>
<Key ID="STR_ACE_Map_BFT_Enabled_Description"> <Key ID="STR_ACE_Map_BFT_Enabled_Description">
<English>Enable Blue Force Tracking. Default: No</English> <English>Enable Blue Force Tracking. Default: No</English>