Fix leg damage always counted as #vehiclecrash

This commit is contained in:
ulteq 2016-12-07 16:39:22 +01:00
parent 03f7451c99
commit 45aa80bed7

View File

@ -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];