From 6ae650d04c78eb8e560c39618f049d932d03988c Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 12 Jun 2012 18:00:03 +0100 Subject: TPT: Fix TNT not exploding if multiple TNT particles are in the same place de6203e049 diff --git a/src/simulation/elements/BANG.cpp b/src/simulation/elements/BANG.cpp index ea22b05..264b4f1 100644 --- a/src/simulation/elements/BANG.cpp +++ b/src/simulation/elements/BANG.cpp @@ -77,6 +77,7 @@ int Element_BANG::update(UPDATE_FUNC_ARGS) { int tempvalue = 2; sim->flood_prop(x, y, offsetof(Particle, tmp), &tempvalue, StructProperty::Integer); + parts[i].tmp = 2; } else if(parts[i].tmp==2) { @@ -123,4 +124,4 @@ int Element_BANG::update(UPDATE_FUNC_ARGS) } -Element_BANG::~Element_BANG() {} \ No newline at end of file +Element_BANG::~Element_BANG() {} -- cgit v0.9.2-21-gd62e