Exit entire map Client XEH on Headless

This commit is contained in:
jonpas 2015-06-21 21:10:50 +02:00
parent a7d9489555
commit 2e50261bd3

View File

@ -1,5 +1,8 @@
#include "script_component.hpp"
// Exit on Headless as well
if !(hasInterface) exitWith {};
LOG(MSG_INIT);
// Calculate the maximum zoom allowed for this map
@ -18,9 +21,6 @@ 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 {