summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-05-11 19:40:08 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-05-11 19:40:08 (GMT)
commitde6203e049a148e16737e76c124fc59d0ed1a862 (patch)
tree57cfd1ccbcd88198753473bc72d7291519b49a12 /src/elements
parentbefd4f5ef58844feed579eaa02b1eeb9dac50b8d (diff)
downloadpowder-de6203e049a148e16737e76c124fc59d0ed1a862.zip
powder-de6203e049a148e16737e76c124fc59d0ed1a862.tar.gz
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.
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/bang.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/elements/bang.c b/src/elements/bang.c
index 3203491..d827f33 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)
{