Fix Mortar Display

This commit is contained in:
PabstMirror 2016-02-25 13:59:00 -06:00
parent 21ba45d0c9
commit f59e8920f9
3 changed files with 3 additions and 7 deletions

View File

@ -17,12 +17,6 @@ class Extended_PostInit_EventHandlers {
};
};
class Extended_DisplayLoad_EventHandlers {
class RscUnitInfo {
ADDON = QUOTE(_this call FUNC(turretDisplayLoaded));
};
};
class Extended_FiredBIS_EventHandlers {
class Mortar_01_base_F {
class ADDON {

View File

@ -18,3 +18,4 @@
if (!hasInterface) exitWith {};
["playerVehicleChanged", {_this call FUNC(handlePlayerVehicleChanged);}] call EFUNC(common,addEventHandler);
["infoDisplayChanged", {_this call FUNC(turretDisplayLoaded);}] call EFUNC(common,addEventHandler);

View File

@ -18,7 +18,8 @@
disableSerialization;
PARAMS_2(_display,_rscType);
params ["_display", "_rscType"];
TRACE_2("params",_display,_rscType);
if (_rscType != "Mk6Mortar") exitWith {};
if (isNull _display) exitWith {};