fix forEachIndex capitalization

This commit is contained in:
commy2 2015-11-30 17:25:16 +01:00
parent b3950bd7f0
commit d037f00a92
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ if ((_code) == "") exitWith {
};
{
if ((_x select 0) == _name) exitWith {
_speedDial set [_forEachindex, _this];
_speedDial set [_forEachIndex, _this];
_found = true;
};
} forEach _speedDial;

View File

@ -116,7 +116,7 @@ _angle = _centerAngle - _angleSpan / 2;
private ["_offset","_newPos"];
_newPos = if (GVAR(UseListMenu)) then {
[(_sPos select 0) + _scaleX,
(_sPos select 1) + _scaleY * (_forEachindex - _numChildren/2 + 0.5)];
(_sPos select 1) + _scaleY * (_forEachIndex - _numChildren/2 + 0.5)];
} else {
[(_sPos select 0) - _scaleX * (cos _angle),
(_sPos select 1) + _scaleY * (sin _angle)];

View File

@ -23,7 +23,7 @@ private ["_outputData"];
_outputData = [] call FUNC(generateOutputData);
{
ctrlSetText [_x , _outputData select _forEachindex];
ctrlSetText [_x , _outputData select _forEachIndex];
} forEach [74100, 74200, 74201, 74300, 74301, 74302, 74303, 74304, 74305, 74400, 74401, 74500, 74600, 74601, 74602, 74603, 74604, 74605];
if (GVAR(referenceHeadingMenu) == 1) then {

View File

@ -35,7 +35,7 @@ _newOptics = [_player] call FUNC(getOptics);
{
if (_newOptics select _forEachIndex != _x) then {
// The optic for this weapon changed, set adjustment to zero
if (!((_adjustment select _forEachindex) isEqualTo [0, 0, 0])) then {
if (!((_adjustment select _forEachIndex) isEqualTo [0, 0, 0])) then {
_adjustment set [_forEachIndex, [0, 0, 0]];
[ACE_player, QGVAR(Adjustment), _adjustment, 0.5] call EFUNC(common,setVariablePublic);
};