diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-13 00:28:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-13 00:28:33 (GMT) |
| commit | f0778c20332cc837a0d05996292a6e5e6265a9d7 (patch) | |
| tree | 505627f46a7c6c5b685375e7027012e25ca610fe /src/simulation/Simulation.cpp | |
| parent | 5f81b707878f3ea30b713321219abd0d1f51afa9 (diff) | |
| download | powder-f0778c20332cc837a0d05996292a6e5e6265a9d7.zip powder-f0778c20332cc837a0d05996292a6e5e6265a9d7.tar.gz | |
TPT: Prevent THDR from counting towards stacked particle limit
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 6477fd4..f92affb 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -4156,7 +4156,8 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu // To make particles collide correctly when inside these elements, these elements must not overwrite an existing pmap entry from particles inside them if (!pmap[y][x] || (t!=PT_INVIS && t!= PT_FILT)) pmap[y][x] = t|(i<<8); - pmap_count[y][x]++; + if (t!=PT_THDR) + pmap_count[y][x]++; } } lastPartUsed = i; |
