summaryrefslogtreecommitdiff
path: root/src/simulation/elements/BANG.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:00:03 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:00:03 (GMT)
commit6ae650d04c78eb8e560c39618f049d932d03988c (patch)
tree879455fd7e06ce50958e8f6d4e505598440c59c3 /src/simulation/elements/BANG.cpp
parente3634e3b5f9a6e599da812db1c76878d7d0a257e (diff)
downloadpowder-6ae650d04c78eb8e560c39618f049d932d03988c.zip
powder-6ae650d04c78eb8e560c39618f049d932d03988c.tar.gz
TPT: Fix TNT not exploding if multiple TNT particles are in the same place de6203e049
Diffstat (limited to 'src/simulation/elements/BANG.cpp')
-rw-r--r--src/simulation/elements/BANG.cpp3
1 files changed, 2 insertions, 1 deletions
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() {}