From 45aa80bed7ffccdcb38bd70652c0c23d829d2f00 Mon Sep 17 00:00:00 2001 From: ulteq Date: Wed, 7 Dec 2016 16:39:22 +0100 Subject: [PATCH] Fix leg damage always counted as #vehiclecrash --- addons/medical_engine/functions/fnc_handleDamage.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical_engine/functions/fnc_handleDamage.sqf b/addons/medical_engine/functions/fnc_handleDamage.sqf index 3b9a81bdf6..f9a7c30539 100644 --- a/addons/medical_engine/functions/fnc_handleDamage.sqf +++ b/addons/medical_engine/functions/fnc_handleDamage.sqf @@ -33,7 +33,7 @@ if (_hitPointIndex < 0) then { // Handle vehicle crashes if (_damage == _unit getVariable [HIT_CRASH, -1]) then { - _isCrash = true; + _isCrash = (_ammo == ""); _unit setVariable [HIT_CRASH, -1]; } else { _unit setVariable [HIT_CRASH, _damage];