From cc8ae0dc4428dd3f8245ba2a37c8685d4fdf5e84 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 12 Jun 2012 17:32:43 +0100 Subject: [PATCH] TPT: Limit gel tmp value 1c5381662d --- src/simulation/elements/GEL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/simulation/elements/GEL.cpp b/src/simulation/elements/GEL.cpp index ed1b0eb1b..79179ea0b 100644 --- a/src/simulation/elements/GEL.cpp +++ b/src/simulation/elements/GEL.cpp @@ -50,6 +50,8 @@ Element_GEL::Element_GEL() int Element_GEL::update(UPDATE_FUNC_ARGS) { int r, rx, ry; + if (parts[i].tmp>100) parts[i].tmp = 100; + if (parts[i].tmp<0) parts[i].tmp = 0; for (rx=-2; rx<3; rx++) for (ry=-2; ry<3; ry++) if (x+rx>=0 && y+ry>0 && x+rx