summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsavask <savask@yandex.ru>2012-04-18 09:46:49 (GMT)
committer savask <savask@yandex.ru>2012-04-18 09:50:24 (GMT)
commit64629df1af70e49300927a2a38df389c4bb4984c (patch)
tree4372b8dd19fcee447aa3347146ce9c565e0c41ce /src
parentd4a9f865030caa45794b2ffe7b72c63ae0745e24 (diff)
downloadpowder-64629df1af70e49300927a2a38df389c4bb4984c.zip
powder-64629df1af70e49300927a2a38df389c4bb4984c.tar.gz
Fix the bug where you could set "bad" temp to insulators.
Diffstat (limited to 'src')
-rw-r--r--src/powder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index ebe8b3d..98f023a 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -2123,6 +2123,7 @@ void update_particles_i(pixel *vid, int start, int inc)
}
}
}
+ else parts[i].temp = restrict_flt(parts[i].temp, MIN_TEMP, MAX_TEMP);
}
if (t==PT_LIFE)