mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove redundant getMagazineIndex compatibility function
This commit is contained in:
parent
8ddc025a16
commit
0220b57609
@ -4,16 +4,4 @@ ADDON = false;
|
||||
|
||||
#include "XEH_PREP.hpp"
|
||||
|
||||
if (isNil "CBA_fnc_getMagazineIndex") then {
|
||||
CBA_fnc_getMagazineIndex = {
|
||||
params [["_unit", objNull, [objNull]], ["_magazine", "", [""]]];
|
||||
|
||||
private _displayName = getText (configFile >> "CfgMagazines" >> _magazine >> "displayName");
|
||||
|
||||
if (_displayName isEqualTo "") exitWith {[]};
|
||||
|
||||
(magazinesDetail _unit select {_x find _displayName == 0}) apply {_x = _x splitString "[:]"; _x select (count _x - 1)};
|
||||
};
|
||||
};
|
||||
|
||||
ADDON = true;
|
||||
|
Loading…
Reference in New Issue
Block a user