Modules Cleanup (#4813)

* Cleanup

* Added newlines
This commit is contained in:
Neviothr 2017-01-14 23:47:03 +02:00 committed by PabstMirror
parent 3f00da7365
commit ade87adf46
3 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,3 @@
class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
@ -11,7 +10,6 @@ class Extended_PreInit_EventHandlers {
};
};
class Extended_PostInit_EventHandlers {
class _ACE_modules { // using a _ so it is the first postInit to be executed
init = QUOTE(call COMPILE_FILE(XEH_postInit));

View File

@ -1,2 +1 @@
PREP(moduleInit);
PREP(moduleInit);

View File

@ -1,4 +1,3 @@
#include "script_component.hpp"
[QEGVAR(common,initSettingsFromModules), {
@ -10,7 +9,7 @@
[_x] call {
params ["_logic"];
private _logicType = typeOf _logic;
_logic hideobject true;
_logic hideObject true;
if (_logic getVariable [QGVAR(initalized), false]) exitWith {};
private _config = (configFile >> "CfgVehicles" >> _logicType);
@ -18,7 +17,7 @@
private _isGlobal = getNumber (_config >> "isGlobal") > 0;
private _isDisposable = getNumber (_config >> "isDisposable") > 0;
private _isPersistent = getNumber (_config >> "isPersistent") > 0 || getnumber (_config >> "isGlobal") > 1;
private _isPersistent = getNumber (_config >> "isPersistent") > 0 || getNumber (_config >> "isGlobal") > 1;
private _isSingular = getNumber (_config >> "isSingular") > 0;
private _function = getText (_config >> "function");
if (isNil _function) then {