summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-11-03 12:22:07 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-11-03 12:22:07 (GMT)
commitbd473f02caa618801513c67fff1cff1fbeb2da34 (patch)
tree9e7cb48b2110d2bba29f9a3bef2bd88dc2e51482 /src/simulation/Simulation.cpp
parent2f9e8c0a5f09968f4a38d5bb2ca5871796c10d80 (diff)
parentfea55f9ac921ce05f9d85c814dfa003a57c86c39 (diff)
downloadpowder-bd473f02caa618801513c67fff1cff1fbeb2da34.zip
powder-bd473f02caa618801513c67fff1cff1fbeb2da34.tar.gz
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 488c7fb..5b18118 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -1977,7 +1977,7 @@ void Simulation::init_can_move()
can_move[PT_STKM2][t] = stkm_move;
can_move[PT_FIGH][t] = stkm_move;
}
- for (t=0;t<PT_NUM;t++)
+ for (t=1;t<PT_NUM;t++)
{
// make them eat things
can_move[t][PT_BHOL] = 1;
@@ -1992,6 +1992,8 @@ void Simulation::init_can_move()
//void behaviour varies with powered state and ctype
can_move[t][PT_PVOD] = 3;
can_move[t][PT_VOID] = 3;
+ can_move[t][PT_EMBR] = 0;
+ can_move[PT_EMBR][t] = 0;
}
for (t=0;t<PT_NUM;t++)
{
@@ -4600,7 +4602,7 @@ void Simulation::update_particles()//doesn't update the particles themselves, bu
if (!pmap[y][x] || (t!=PT_INVIS && t!= PT_FILT))
pmap[y][x] = t|(i<<8);
// (there are a few exceptions, including energy particles - currently no limit on stacking those)
- if (t!=PT_THDR && t!=PT_EMBR && t!=PT_FIGH)
+ if (t!=PT_THDR && t!=PT_EMBR && t!=PT_FIGH && t!=PT_PLSM)
pmap_count[y][x]++;
}
}