summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-27 23:21:26 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-27 23:21:26 (GMT)
commit713034ed619378aa0abc6b38b69604e1aba8821c (patch)
tree8ee79915fd21a9eed3c3776b3fbfaa93a41fb21c /src/main.c
parent16f7cdaef61dd7ff57a20e96984db91f04ec30b2 (diff)
parent761ea03882fd779cc77ac7cb49ff59bbfe94b51e (diff)
downloadpowder-713034ed619378aa0abc6b38b69604e1aba8821c.zip
powder-713034ed619378aa0abc6b38b69604e1aba8821c.tar.gz
Cracker Merge
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e6d191e..8a0a1be 100644
--- a/src/main.c
+++ b/src/main.c
@@ -729,7 +729,7 @@ 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;
+ parts[i-1].temp = ttv + 0.15;
} else {
parts[i-1].temp = (d[p++]*((MAX_TEMP+(-MIN_TEMP))/255))+MIN_TEMP;
}