- fix good values for temperature

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8707 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 25347416c093b953da32997c0e30cd9378899354
Former-commit-id: 4dd60fd5c37cdefaecdbe524f026be2c4719a71f
This commit is contained in:
torcs-ng 2023-01-28 21:54:50 +00:00
parent 335dcadc50
commit eb3fbaa87b

View file

@ -613,15 +613,15 @@ cGrBoard::grDispGGraph()
if (GFlag == 3)
{
char buf[BUFSIZE];
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(0) - 273.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(0) - 273.15);
GfuiDrawString(buf, normal_color_, GFUI_FONT_SMALL_C, X1 - 50.00, Y1 + 5.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(1) - 273.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(1) - 273.15);
GfuiDrawString(buf, normal_color_, GFUI_FONT_SMALL_C, X1 + 10.00, Y1 + 5.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(2) - 273.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(2) - 273.15);
GfuiDrawString(buf, normal_color_, GFUI_FONT_SMALL_C, X1 - 50.00, Y1 - 15.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(3) - 273.0);
snprintf(buf, sizeof(buf), "T: %3.2f", car_->_tyreT_mid(3) - 273.15);
GfuiDrawString(buf, normal_color_, GFUI_FONT_SMALL_C, X1 + 10.00, Y1 - 15.0);
snprintf(buf, sizeof(buf), "Air Temperature: %3.2f", car_->_airtemp - 273.0);
snprintf(buf, sizeof(buf), "Air Temperature: %3.2f", car_->_airtemp - 273.15);
GfuiDrawString(buf, normal_color_, GFUI_FONT_SMALL_C, X1 - 50.00, Y1 - 65.0);
}
}