Increase max weapon index for large modsets (#5054)

This commit is contained in:
PabstMirror
2017-05-12 13:12:39 -05:00
committed by GitHub
parent b8a6a602f3
commit 0cdb2ce238
13 changed files with 16 additions and 16 deletions

View File

@ -56,7 +56,7 @@ if (inputAction "nextWeapon" > 0) then {
// switch to last mode
_index = 0;
while {
_index < 100 && {currentMuzzle _unit != _weapon || {currentWeaponMode _unit != _mode}}
_index < 299 && {currentMuzzle _unit != _weapon || {currentWeaponMode _unit != _mode}}
} do {
_unit action ["SwitchWeapon", _unit, _unit, _index];
_index = _index + 1;