summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-08 23:12:26 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-08 23:12:26 (GMT)
commita6fe456cd0b4ad9f387923d2c250c5712968575e (patch)
tree6ea54cbe38a1cf3498a60dd3b13e41f33f443c60 /src
parent164681f4e65904ae6996dc67aaad30e1d590f3a1 (diff)
downloadpowder-a6fe456cd0b4ad9f387923d2c250c5712968575e.zip
powder-a6fe456cd0b4ad9f387923d2c250c5712968575e.tar.gz
only add .15 to PUMP, so that things at absolute 0 load at 0.
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f89eae1..c89f56f 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;
}