summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2010-12-26 14:47:25 (GMT)
committer Cracker64 <cracker642@gmail.com>2010-12-26 14:47:25 (GMT)
commitc5c88529c228987897b722cffafad4e888604132 (patch)
treefa852d13377f404284344fc9e747f6027cbd53ef /src/main.c
parent0dbb53606bca11d98cef874ff3c117c980e2b909 (diff)
downloadpowder-c5c88529c228987897b722cffafad4e888604132.zip
powder-c5c88529c228987897b722cffafad4e888604132.tar.gz
slight temp loading change so PUMP will load with 0C if saved at 0C. fix visual studio compiling
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 976bfe7..050469d 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;
}