From 0cc8f84e63761fe3e8e7146944e54ca7c7e52b66 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 18 Apr 2012 21:35:14 +0100 Subject: TPT: Fix the bug where you could set bad temp to insulators. 64629df1af 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) -- cgit v0.9.2-21-gd62e