From c1e8b3dba970a74a4af18c1c52f9912bd0dbf614 Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Sun, 10 May 2015 23:58:32 -0300 Subject: [PATCH] Fix temperature bar color --- addons/overheating/functions/fnc_displayTemperature.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/overheating/functions/fnc_displayTemperature.sqf b/addons/overheating/functions/fnc_displayTemperature.sqf index 2f5cf09f71..11eb13ca75 100644 --- a/addons/overheating/functions/fnc_displayTemperature.sqf +++ b/addons/overheating/functions/fnc_displayTemperature.sqf @@ -22,8 +22,8 @@ _temperature = [_player, _weapon, 0] call FUNC(updateTemperature); _scaledTemperature = (_temperature / 1000) min 1; _color = [ - 2 * (_scaledTemperature * 2) min 1, - 2 * (1 - (_scaledTemperature * 2)) min 1, + 2 * (_scaledTemperature * 2 min 1) min 1, + 2 * (1 - (_scaledTemperature * 2 min 1)) min 1, 00 ];