Fix the magazine name being broken in later code

This commit is contained in:
VKing 2016-01-19 20:21:37 +01:00
parent 59923710b7
commit ae576e57e3

View File

@ -137,12 +137,13 @@ private _FCSElevation = [];
} count _muzzles;
// Fix the `in` operator being case sensitive and BI fucking up the spelling of their own classnames
_magazine = toLower _magazine;
private _magazineCheck = toLower _magazine;
private _weaponMagazinesCheck = [];
{
_weaponMagazines set [_forEachIndex, toLower _x];
_weaponMagazinesCheck pushBack (toLower _x);
} forEach _weaponMagazines;
if (_magazine in _weaponMagazines) exitWith {
if (_magazineCheck in _weaponMagazinesCheck) exitWith {
_initSpeedCoef = getNumber(configFile >> "CfgWeapons" >> _weapon >> "initSpeed");
if (_initSpeedCoef < 0) then {