summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-25 16:21:13 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-25 16:21:13 (GMT)
commit811c2cb26bdce4975c23c4c47d61471726dbab0d (patch)
tree486a0e9a0d3ded589e748401a3b42a68c1d528ef /src/simulation/Simulation.cpp
parent5031291bf6ec26f2d60ab2fd7071e64cc5827304 (diff)
downloadpowder-811c2cb26bdce4975c23c4c47d61471726dbab0d.zip
powder-811c2cb26bdce4975c23c4c47d61471726dbab0d.tar.gz
TPT: Use eval_move(PT_FIGH, ...) when fighters are checking for obstacles 79614a9719
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 8581347..9a347e8 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -4243,7 +4243,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);
- if (t!=PT_THDR && t!=PT_EMBR)
+ // (there are a few exceptions, including energy particles - currently no limit on stacking those)
+ if (t!=PT_THDR && t!=PT_EMBR && t!=PT_FIGH)
pmap_count[y][x]++;
}
}