From a6fe456cd0b4ad9f387923d2c250c5712968575e Mon Sep 17 00:00:00 2001 From: Cracker64 Date: Sat, 8 Jan 2011 18:12:26 -0500 Subject: [PATCH] only add .15 to PUMP, so that things at absolute 0 load at 0. --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f89eae1ab..c89f56f28 100644 --- a/src/main.c +++ b/src/main.c @@ -730,7 +730,11 @@ int parse_save(void *save, int size, int replace, int x0, int y0) if(new_format) { ttv = (d[p++])<<8; ttv |= (d[p++]); - parts[i-1].temp = ttv + 0.15; + if(parts[i-1].type==PT_PUMP) { + parts[i-1].temp = ttv + 0.15;//fix PUMP saved at 0, so that it loads at 0. + } else { + parts[i-1].temp = ttv; + } } else { parts[i-1].temp = (d[p++]*((MAX_TEMP+(-MIN_TEMP))/255))+MIN_TEMP; }