summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-12 16:25:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-12 16:25:06 (GMT)
commit50a587813e534eefe3741a534e95696bf2855cb1 (patch)
tree4b6a0d5abd0db4898b52cc01219f5d5b435282e2 /src/simulation/Simulation.cpp
parent318499350d80697be0563e2a43c2fc2df059c412 (diff)
downloadpowder-50a587813e534eefe3741a534e95696bf2855cb1.zip
powder-50a587813e534eefe3741a534e95696bf2855cb1.tar.gz
TPT: Add PROP_NOAMBHEAT to prevent certain elements from being heated by Ambient heat… 8397b6e51a
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 8c78496..1cedb5c 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -3134,7 +3134,7 @@ void Simulation::update_particles_i(int start, int inc)
{
float c_Cm = 0.0f;
#endif
- if (aheat_enable)
+ if (aheat_enable && !(elements[t].Properties&PROP_NOAMBHEAT))
{
#ifdef REALISTIC
c_heat = parts[i].temp*96.645/elements[t].HeatConduct*gel_scale*fabs(elements[t].Weight) + hv[y/CELL][x/CELL]*100*(pv[y/CELL][x/CELL]+273.15f)/256;