summaryrefslogtreecommitdiff
path: root/src/simulation/elements/ANAR.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-16 17:45:45 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-16 17:45:45 (GMT)
commitb4564f212a17539604e9fa63d649e157f8888eb1 (patch)
tree9ed998180f825d79eaa753c28b34136822a8c928 /src/simulation/elements/ANAR.cpp
parentf05044ab68e51ce9c374f6af09284051efcda449 (diff)
parent3a738846a3e0c59ed02805f11f93678ae42a946e (diff)
downloadpowder-b4564f212a17539604e9fa63d649e157f8888eb1.zip
powder-b4564f212a17539604e9fa63d649e157f8888eb1.tar.gz
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/simulation/elements/ANAR.cpp')
-rw-r--r--src/simulation/elements/ANAR.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simulation/elements/ANAR.cpp b/src/simulation/elements/ANAR.cpp
index a00cb66..16d619d 100644
--- a/src/simulation/elements/ANAR.cpp
+++ b/src/simulation/elements/ANAR.cpp
@@ -53,16 +53,16 @@ int Element_ANAR::update(UPDATE_FUNC_ARGS)
//if (parts[i].temp >= 0.23)
// parts[i].temp --;
- for (rx=-2; rx<3; rx++)
- for (ry=-2; ry<3; ry++)
+ for (rx=-1; rx<2; rx++)
+ for (ry=-1; ry<2; ry++)
if (BOUNDS_CHECK && (rx || ry))
{
r = pmap[y+ry][x+rx];
if (!r)
continue;
- if ((r&0xFF)==PT_HFLM && !(rand()%22))
+ if ((r&0xFF)==PT_CFLM && !(rand()%7))
{
- sim->part_change_type(i,x,y,PT_HFLM);
+ sim->part_change_type(i,x,y,PT_CFLM);
parts[i].life = rand()%150+50;
parts[r>>8].temp = parts[i].temp = 0;
sim->pv[y/CELL][x/CELL] -= 0.5;