cleanup switchunits

This commit is contained in:
bux578 2015-06-02 19:06:41 +02:00
parent cf0b2c2a52
commit 0bd358c415
4 changed files with 8 additions and 8 deletions

View File

@ -1,12 +1,11 @@
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE( call COMPILE_FILE(XEH_preInit) );
};
class ADDON {
init = QUOTE( call COMPILE_FILE(XEH_preInit) );
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
clientInit = QUOTE( call COMPILE_FILE(XEH_clientInit) );
init = QUOTE( call COMPILE_FILE(XEH_postInit) );
};
};

View File

@ -50,4 +50,4 @@ class CfgVehicles {
description = "$STR_ACE_SwitchUnits_Module_Description";
};
};
};
};

View File

@ -16,6 +16,7 @@
#include "script_component.hpp"
if (missionNamespace getVariable [QGVAR(EnableSwitchUnits), false]) then {
[player] call FUNC(startSwitchUnits);
} else {
@ -24,5 +25,5 @@ if (missionNamespace getVariable [QGVAR(EnableSwitchUnits), false]) then {
if ((_name == QGVAR(EnableSwitchUnits)) && {_value}) then {
[player] call FUNC(startSwitchUnits);
};
}] call EFUNC(common,addEventhandler);
}] call EFUNC(common,addEventhandler);
};

View File

@ -14,4 +14,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "ACE_Settings.hpp"
#include "ACE_Settings.hpp"