summaryrefslogtreecommitdiff
path: root/src/elements/dest.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-10-12 15:58:56 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-13 16:33:21 (GMT)
commitfc4836e69b14b413315deb67c349b7e2badb9c2b (patch)
tree130445f9f5c6289dd32fc9c00bcd936af1108e56 /src/elements/dest.c
parent2f46dca7c1d0016957dfd88831f453f06e080fef (diff)
downloadpowder-fc4836e69b14b413315deb67c349b7e2badb9c2b.zip
powder-fc4836e69b14b413315deb67c349b7e2badb9c2b.tar.gz
Don't heat elements which don't conduct heat
Diffstat (limited to 'src/elements/dest.c')
-rw-r--r--src/elements/dest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/dest.c b/src/elements/dest.c
index a50dfaa..17ea2fe 100644
--- a/src/elements/dest.c
+++ b/src/elements/dest.c
@@ -43,7 +43,7 @@ int update_DEST(UPDATE_FUNC_ARGS) {
}
else
{
- parts[r>>8].temp = restrict_flt(parts[r>>8].temp+10000.0f, MIN_TEMP, MAX_TEMP);
+ if (ptypes[r&0xFF].hconduct) parts[r>>8].temp = restrict_flt(parts[r>>8].temp+10000.0f, MIN_TEMP, MAX_TEMP);
}
int topv=pv[y/CELL][x/CELL]/9+parts[r>>8].temp/900;
if (topv>40.0f)