Heat fix
This commit is contained in:
parent
6409b2ae2c
commit
a8e1e33605
3
main.c
3
main.c
@ -592,7 +592,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
|
|||||||
if(ver>=42){
|
if(ver>=42){
|
||||||
parts[i-1].temp = (d[p++]*((MAX_TEMP+(-MIN_TEMP))/255))+MIN_TEMP;
|
parts[i-1].temp = (d[p++]*((MAX_TEMP+(-MIN_TEMP))/255))+MIN_TEMP;
|
||||||
} else {
|
} else {
|
||||||
parts[i-1].temp = ((d[p++]*(((3500.0f)+(-(-273)))/255))+(-273)) + 273.15f;
|
parts[i-1].temp = ((d[p++]*((O_MAX_TEMP+(-O_MIN_TEMP))/255))+O_MIN_TEMP)+273;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1985,6 +1985,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
#ifdef BETA
|
#ifdef BETA
|
||||||
sprintf(uitext, "Version %d (Beta %d) FPS:%d", SAVE_VERSION, MINOR_VERSION, FPS);
|
sprintf(uitext, "Version %d (Beta %d) FPS:%d", SAVE_VERSION, MINOR_VERSION, FPS);
|
||||||
|
//printf("%s\n", uitext);
|
||||||
#else
|
#else
|
||||||
sprintf(uitext, "Version %d.%d FPS:%d", SAVE_VERSION, MINOR_VERSION, FPS);
|
sprintf(uitext, "Version %d.%d FPS:%d", SAVE_VERSION, MINOR_VERSION, FPS);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user