From 1b3ed13a4779f4063e4bab7fe543b6d2f3c1a5be Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Mon, 31 Oct 2016 16:04:27 -0400 Subject: [PATCH] Remove unnecessary check in damage diag_log Vanilla commit: https://github.com/DayZMod/DayZ/commit/e826a8bda95dbc8b5dc25b7efd1be3ee79b395b1 --- SQF/dayz_code/compile/fn_damageHandler.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 322cefd69..e01c2a6ed 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -262,7 +262,7 @@ if (_damage > 0.4) then { //Display some info in the players log file. if (_unit == player) then { - diag_log format["DAMAGE: player hit by %1 in %2 with %3 for %4 scaled to %5, Conscious %6",_sourceVehicleType,_hit,if (_ammo == "") then { "" } else { _ammo },(str(_damage)),(str(_damage * _scale)),(str (!_unconscious))]; + diag_log format["DAMAGE: player hit by %1 in %2 with %3 for %4 scaled to %5, Conscious %6",_sourceVehicleType,_hit,_ammo,(str(_damage)),(str(_damage * _scale)),(str (!_unconscious))]; r_player_blood = r_player_blood - (_damage * _scale); //Pain and Infection