From 1c5381662d4d2b7cc6cf0c56e4b08607882a780a Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Mon, 7 May 2012 23:50:13 +0100 Subject: [PATCH] Limit gel tmp value --- src/elements/gel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/elements/gel.c b/src/elements/gel.c index 2a3f89faf..b805dd673 100644 --- a/src/elements/gel.c +++ b/src/elements/gel.c @@ -17,6 +17,8 @@ int update_GEL(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