Temp. displayed using {aheat} not in celsius

Since it is displayed in celsius for {t}, shouldn't it be for {aheat} too? Just a consistency thing.
This commit is contained in:
QuanTech0
2017-06-15 20:19:44 -04:00
committed by jacob1
parent fb08400552
commit d0feba6445

View File

@@ -30,7 +30,7 @@ std::string sign::getText(Simulation *sim)
float aheat = 0.0f; float aheat = 0.0f;
if (x>=0 && x<XRES && y>=0 && y<YRES) if (x>=0 && x<XRES && y>=0 && y<YRES)
aheat = sim->hv[y/CELL][x/CELL]; aheat = sim->hv[y/CELL][x/CELL];
sprintf(buff, "%3.2f", aheat); sprintf(buff, "%3.2f", aheat-273.15);
} }
else if (!strcmp(signText,"{t}")) else if (!strcmp(signText,"{t}"))
{ {