Fix handleDamage caching return value

Should never return nil. Instead, return a 0 as it's expecting new damage. this may fix the random vanilla damage kicking in.
This commit is contained in:
Glowbal 2015-06-10 12:21:06 +02:00
parent b8d473cdf7
commit efa9cf4709

View File

@ -50,7 +50,7 @@ if (((velocity _unit) select 2 < -5) && {(vehicle _unit == _unit)}) then {
_unit setVariable [QGVAR(isFalling), True];
};
if (_unit getVariable [QGVAR(isFalling), false] && {!(_selectionName in ["", "leg_l", "leg_r"])}) exitWith {};
if (_unit getVariable [QGVAR(isFalling), false] && {!(_selectionName in ["", "leg_l", "leg_r"])}) exitWith {0};
if (_unit getVariable [QGVAR(isFalling), false]) then {
_newDamage = _newDamage * 0.7;
};