diff options
| author | jacob1 <jfu614@gmail.com> | 2013-03-16 17:23:19 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-03-16 17:23:19 (GMT) |
| commit | 3a738846a3e0c59ed02805f11f93678ae42a946e (patch) | |
| tree | 72cf0fc51fbde58f3d7e6bb1601572a4f20236c0 /src/simulation/elements/ANAR.cpp | |
| parent | d76650f7e6983bb11e6217661b143f2efe3791f6 (diff) | |
| download | powder-3a738846a3e0c59ed02805f11f93678ae42a946e.zip powder-3a738846a3e0c59ed02805f11f93678ae42a946e.tar.gz | |
add identifier constants based on the display name to the lua api
Diffstat (limited to 'src/simulation/elements/ANAR.cpp')
| -rw-r--r-- | src/simulation/elements/ANAR.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/ANAR.cpp b/src/simulation/elements/ANAR.cpp index fa9130e..16d619d 100644 --- a/src/simulation/elements/ANAR.cpp +++ b/src/simulation/elements/ANAR.cpp @@ -60,9 +60,9 @@ int Element_ANAR::update(UPDATE_FUNC_ARGS) r = pmap[y+ry][x+rx]; if (!r) continue; - if ((r&0xFF)==PT_HFLM && !(rand()%7)) + 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; |
