summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-18 20:35:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-18 20:35:14 (GMT)
commit0cc8f84e63761fe3e8e7146944e54ca7c7e52b66 (patch)
treea60a2cace7275fe9975f54d09c256012798f4244 /src/simulation/Simulation.cpp
parentf8b1e1a2326ca73f42aa51a3efbd0ddddd852430 (diff)
downloadpowder-0cc8f84e63761fe3e8e7146944e54ca7c7e52b66.zip
powder-0cc8f84e63761fe3e8e7146944e54ca7c7e52b66.tar.gz
TPT: Fix the bug where you could set bad temp to insulators. 64629df1af
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index d5b4f6b..2ad007b 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2878,6 +2878,7 @@ void Simulation::update_particles_i(int start, int inc)
}
}
}
+ else parts[i].temp = restrict_flt(parts[i].temp, MIN_TEMP, MAX_TEMP);
}
if (t==PT_LIFE)