Minor cleanup

This commit is contained in:
johnb432 2023-12-23 10:50:56 +01:00
parent da210890ac
commit a4661f3280
4 changed files with 4 additions and 5 deletions

View File

@ -63,7 +63,7 @@ private _isBeltLinking = false;
}; };
private _maxMagazineAmmo = _desiredAmmo min getNumber (_cfgMagazines >> _xMag >> "count"); private _maxMagazineAmmo = _desiredAmmo min getNumber (_cfgMagazines >> _xMag >> "count");
if (_xAmmo >= _maxMagazineAmmo) exitWith { if (_xAmmo >= _maxMagazineAmmo) exitWith {
[false, _loadedMag, -6, false] breakOut "main"; // Already at capicity [false, _loadedMag, -6, false] breakOut "main"; // Already at capacity
}; };
_ammoNeeded = _maxMagazineAmmo - _xAmmo; _ammoNeeded = _maxMagazineAmmo - _xAmmo;
_isBeltLinking = true; _isBeltLinking = true;

View File

@ -10,7 +10,7 @@
* *
* Return Value: * Return Value:
* Mags <ARRAY> * Mags <ARRAY>
* [Carry Magazine <STRING>, Turret Path <ARRAY>, Load Info <NUMBER>, Magazine Source <OBJECT>] * [Carry Magazine <STRING>, Turret Path <ARRAY>, Load Info <ARRAY>, Magazine Source <OBJECT>, Unit <OBJECT>, Magazine Ammo <NUMBER>]
* *
* Example: * Example:
* [cursorObject, player] call ace_csw_fnc_reload_getLoadableMagazines * [cursorObject, player] call ace_csw_fnc_reload_getLoadableMagazines

View File

@ -68,7 +68,6 @@ if (hasInterface && {!(_typeOf in GVAR(initializedStaticTypes))}) then {
[_typeOf, 0, ["ACE_MainActions"], _disassembleAction] call EFUNC(interact_menu,addActionToClass); [_typeOf, 0, ["ACE_MainActions"], _disassembleAction] call EFUNC(interact_menu,addActionToClass);
}; };
private _ammoActionPath = []; private _ammoActionPath = [];
private _magazineLocation = getText (_configOf >> QUOTE(ADDON) >> "magazineLocation"); private _magazineLocation = getText (_configOf >> QUOTE(ADDON) >> "magazineLocation");
private _condition = { //IGNORE_PRIVATE_WARNING ["_target", "_player"]; private _condition = { //IGNORE_PRIVATE_WARNING ["_target", "_player"];