From de6203e049a148e16737e76c124fc59d0ed1a862 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Fri, 11 May 2012 20:40:08 +0100 Subject: [PATCH] Fix TNT not exploding if multiple TNT particles are in the same place flood_prop only changes the tmp value of one TNT particle at each coordinate. So some TNT particles can retain tmp=1 and keep running flood_prop, stopping the TNT from exploding. --- src/elements/bang.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/elements/bang.c b/src/elements/bang.c index 32034911a..d827f3352 100644 --- a/src/elements/bang.c +++ b/src/elements/bang.c @@ -44,6 +44,7 @@ int update_BANG(UPDATE_FUNC_ARGS) { { int tempvalue = 2; flood_prop(x, y, offsetof(particle, tmp), &tempvalue, 0); + parts[i].tmp = 2; } else if(parts[i].tmp==2) {