Weather - Use apparent temp in displayAirTemp (#8544)

This commit is contained in:
PabstMirror 2021-10-22 08:21:22 -05:00 committed by GitHub
parent 275a822f78
commit 3c5d47e83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,10 +17,10 @@
*/
params ["_apparent_temperature", "_bias"];
TRACE_2("params",_temperature, _bias);
TRACE_2("displayAirTemp",_apparent_temperature, _bias);
_temperature1 = floor(_temperature + (_bias select 0) - (random 2));
_temperature2 = floor(_temperature + (_bias select 1) + (random 2));
private _temperature1 = floor(_apparent_temperature + (_bias select 0) - (random 2));
private _temperature2 = floor(_apparent_temperature + (_bias select 1) + (random 2));
private _color1 = [
// Colors obtained by quartic regression formula of RGB values at corresponding temperatures as marked on advanced_ballistics rangecard
@ -41,8 +41,6 @@ private _color2 = [
_text = composeText [_text, [format ["%1C", _temperature2], _color2] call EFUNC(common,stringToColoredText)];
[_text, QPATHTOF(UI\temp_ca.paa),_color, ACE_player, 2] call EFUNC(common,displayTextPicture);
/*
for "_i" from -40 to 40 step 4 do {
_temp_color = _color;