From 0544ac37fa43f7cdc7a0b014cf057e7627a1ea8d Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 18 May 2016 17:04:44 -0400 Subject: [PATCH] Fix broken legs icon flashing indefinitely This keeps the icon solid when your legs are broken instead of flashing it constantly. --- SQF/dayz_code/compile/player_updateGui.sqf | 2 +- SQF/dayz_code/compile/player_updateGuiDark.sqf | 2 +- SQF/dayz_code/compile/player_updateGuiEpoch.sqf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SQF/dayz_code/compile/player_updateGui.sqf b/SQF/dayz_code/compile/player_updateGui.sqf index ece87be35..f1028cb52 100644 --- a/SQF/dayz_code/compile/player_updateGui.sqf +++ b/SQF/dayz_code/compile/player_updateGui.sqf @@ -161,7 +161,7 @@ if (_audible < 0.2) then {_audible = 0.2;}; _ctrlEar ctrlSetTextColor [1, 1, 1, _audible]; // Fracture/Broken Legs -if (!(canStand player) and !(ctrlShown _ctrlFracture)) then { +if !(canStand player) then { _ctrlFracture ctrlShow true; } else { diff --git a/SQF/dayz_code/compile/player_updateGuiDark.sqf b/SQF/dayz_code/compile/player_updateGuiDark.sqf index 26a1457d9..6e300666a 100644 --- a/SQF/dayz_code/compile/player_updateGuiDark.sqf +++ b/SQF/dayz_code/compile/player_updateGuiDark.sqf @@ -88,7 +88,7 @@ _ctrlEye ctrlSetText _visualtext; _ctrlEar ctrlSetText _audibletext; // Fracture/Broken Legs -if (!(canStand player) and !(ctrlShown _ctrlFracture)) then { +if !(canStand player) then { _ctrlFracture ctrlShow true; } else { diff --git a/SQF/dayz_code/compile/player_updateGuiEpoch.sqf b/SQF/dayz_code/compile/player_updateGuiEpoch.sqf index 9dbb73749..ba029ec9f 100644 --- a/SQF/dayz_code/compile/player_updateGuiEpoch.sqf +++ b/SQF/dayz_code/compile/player_updateGuiEpoch.sqf @@ -113,7 +113,7 @@ if (_audible > 0) then {_audibletext = "\z\addons\dayz_code\gui\status_epoch\val _ctrlEar ctrlSetText _audibletext; // Fracture/Broken Legs -if (!(canStand player) and !(ctrlShown _ctrlFracture)) then { +if !(canStand player) then { _ctrlFracture ctrlShow true; } else {