Fix temperature bar color

This commit is contained in:
esteldunedain 2015-05-10 23:58:32 -03:00 committed by PabstMirror
parent f132955d9f
commit c1e8b3dba9

View File

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