diff options
| author | Simon 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) |
| commit | 6ae650d04c78eb8e560c39618f049d932d03988c (patch) | |
| tree | 879455fd7e06ce50958e8f6d4e505598440c59c3 /src/simulation/elements/BANG.cpp | |
| parent | e3634e3b5f9a6e599da812db1c76878d7d0a257e (diff) | |
| download | powder-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.cpp | 3 |
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() {} |
