mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Fix weapon without mag showing weird velocity (#6500)
* Fix weapon without mag showing weird velocity * Update stringtable.xml * Change string to str_empty
This commit is contained in:
parent
240046ceee
commit
bac4156d1a
@ -25,10 +25,8 @@ if (EGVAR(arsenal,currentLeftPanel) == 2002) then {
|
||||
[handgunWeapon EGVAR(arsenal,center), _primaryMag param [0, ""]]
|
||||
} params ["_weapon", "_magazine"];
|
||||
|
||||
private _initSpeed = getNumber (_config >> "initSpeed");
|
||||
|
||||
if (_magazine isEqualTo "") then {
|
||||
_initSpeed
|
||||
localize "str_empty";
|
||||
} else {
|
||||
private _ammoCfg = (configFile >> "CfgAmmo" >> (getText (configFile >> "CfgMagazines" >> _magazine >> "ammo")));
|
||||
private _barrelLength = getNumber (_config >> "ACE_barrelLength");
|
||||
@ -40,6 +38,6 @@ if (_magazine isEqualTo "") then {
|
||||
|
||||
format ["%1 m/s (%2 ft/s)", _muzzleVelocity toFixed 0, (_muzzleVelocity * 3.28084) toFixed 0]
|
||||
} else {
|
||||
_initSpeed
|
||||
localize "str_empty";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user