summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-18 20:21:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-18 20:21:32 (GMT)
commit472cb8916eea4313c1d6ac9feb5c415db295536f (patch)
tree8fa6290889ab5350f2e6b6510f4330a534c8fbbe /src/simulation/Simulation.cpp
parent1fdaabca6d7d6ba4fd968b47693282b32e705264 (diff)
downloadpowder-472cb8916eea4313c1d6ac9feb5c415db295536f.zip
powder-472cb8916eea4313c1d6ac9feb5c415db295536f.tar.gz
TPT: A small fix for convection. ff8ce0ef3a
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 853a7f0..5101dfb 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2604,7 +2604,7 @@ void Simulation::update_particles_i(int start, int inc)
if (!legacy_enable)
{
- if (y-2 >= 0 && y-2 < YRES && (ptypes[t].properties&TYPE_LIQUID) && gel_scale>(rand()%250)) {//some heat convection for liquids
+ if (y-2 >= 0 && y-2 < YRES && (ptypes[t].properties&TYPE_LIQUID) && (t!=PT_GEL || gel_scale>(1+rand()%255))) {//some heat convection for liquids
r = pmap[y-2][x];
if (!(!r || parts[i].type != (r&0xFF))) {
if (parts[i].temp>parts[r>>8].temp) {