Make switch weapon interrupt autorun

Fixes #1850
This commit is contained in:
ebaydayz
2017-01-02 14:41:53 -05:00
parent d5a3cdb2e3
commit d124a5d2f7
3 changed files with 5 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ dz_fn_switchWeapon =
{
if (vehicle player != player) exitWith {};
if Player_IsOnLadder() exitWith {};
if (dayz_autoRun) then {call dayz_autoRunOff;};
private ["_current","_primary","_secondary","_swapWeapons"];