#2872-Map time support for subclasses of ItemWatch

This commit is contained in:
PabstMirror 2015-11-24 16:17:06 -06:00
parent cfefb1c40e
commit 575fabb69d

View File

@ -139,5 +139,9 @@ GVAR(hasWatch) = true;
if (isNull (_this select 0)) exitWith { if (isNull (_this select 0)) exitWith {
GVAR(hasWatch) = true; GVAR(hasWatch) = true;
}; };
GVAR(hasWatch) = "ItemWatch" in (_this select 1 select 17); GVAR(hasWatch) = false;
{
if (_x isKindOf ["ItemWatch", configFile >> "CfgWeapons"]) exitWith {GVAR(hasWatch) = true;};
false
} count (assignedItems ACE_player);
}] call EFUNC(common,addEventHandler); }] call EFUNC(common,addEventHandler);