Merge pull request #1072 from acemod/disablepointerinheritance

disable laserpointer inheritance for rhs, fix #1070
This commit is contained in:
commy2 2015-05-09 06:19:25 +02:00
commit 31f421c3f4

View File

@ -29,11 +29,17 @@ _pointer = switch (_weapon) do {
if (_pointer == "") exitWith {};
private "_config";
_config = configFile >> "CfgWeapons" >> _pointer;
private "_nextPointer";
_nextPointer = getText (configFile >> "CfgWeapons" >> _pointer >> "ACE_nextModeClass");
_nextPointer = getText (_config >> "ACE_nextModeClass");
if (_nextPointer == "") exitWith {};
// disable inheritance for this entry, because addons claim this as a base class for convenience
if !((_config >> "ACE_nextModeClass") in configProperties [_config, "true", false]) exitWith {};
private ["_description", "_picture"];
_description = getText (configFile >> "CfgWeapons" >> _nextPointer >> "ACE_modeDescription");