remove unnecessary code, aesthetic tweak

This commit is contained in:
SzwedzikPL 2016-02-10 01:38:14 +01:00
parent 5f0a2b1945
commit 388b00f58c
4 changed files with 2 additions and 18 deletions

View File

@ -95,16 +95,9 @@ class Extended_InitPost_EventHandlers {
init = QUOTE(_this call DFUNC(initObject));
};
};
class Land_PortableLight_single_F {
class ADDON {
init = QUOTE(_this call DFUNC(initObject));
};
};
class Land_PortableLight_double_F {
class ADDON {
init = QUOTE(_this call DFUNC(initObject));
};
};
};

View File

@ -45,7 +45,7 @@ class CfgVehicles {
description = CSTRING(MakeLoadable_description);
typeName = "BOOL";
defaultValue = 1;
};
};
class setSize {
displayName = CSTRING(makeLoadable_setSize_displayName);
typeName = "NUMBER";
@ -491,8 +491,4 @@ class CfgVehicles {
GVAR(size) = 1;
GVAR(canLoad) = 1;
};
class Land_PortableLight_double_F: Land_PortableLight_single_F {
GVAR(size) = 1;
GVAR(canLoad) = 1;
};
};

View File

@ -32,11 +32,6 @@ class Extended_Init_EventHandlers {
init = QUOTE(_this call DFUNC(initObject));
};
};
class Land_PortableLight_double_F {
class ADDON {
init = QUOTE(_this call DFUNC(initObject));
};
};
};
class Extended_Killed_EventHandlers {

View File

@ -29,7 +29,7 @@ private _hitPointsDamage = [];
} count _reflectors;
//if lamp is on turn it off
private _eventName = if(_isOn) then {"lampTurnOff"} else {"lampTurnOn"};
private _eventName = ["lampTurnOn", "lampTurnOff"] select _isOn;
if(local _lamp) then {
[_eventName, [_lamp, _hitPointsDamage, DISABLED_LAMP_DMG]] call EFUNC(common,localEvent);
} else {