summaryrefslogtreecommitdiff
path: root/src/simulation/elements/C5.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-03-16 17:23:19 (GMT)
committer jacob1 <jfu614@gmail.com>2013-03-16 17:23:19 (GMT)
commit3a738846a3e0c59ed02805f11f93678ae42a946e (patch)
tree72cf0fc51fbde58f3d7e6bb1601572a4f20236c0 /src/simulation/elements/C5.cpp
parentd76650f7e6983bb11e6217661b143f2efe3791f6 (diff)
downloadpowder-3a738846a3e0c59ed02805f11f93678ae42a946e.zip
powder-3a738846a3e0c59ed02805f11f93678ae42a946e.tar.gz
add identifier constants based on the display name to the lua api
Diffstat (limited to 'src/simulation/elements/C5.cpp')
-rw-r--r--src/simulation/elements/C5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/C5.cpp b/src/simulation/elements/C5.cpp
index 0141991..98d9bf0 100644
--- a/src/simulation/elements/C5.cpp
+++ b/src/simulation/elements/C5.cpp
@@ -57,11 +57,11 @@ int Element_C5::update(UPDATE_FUNC_ARGS)
r = pmap[y+ry][x+rx];
if (!r)
continue;
- if (((r&0xFF)!=PT_C5 && parts[r>>8].temp<100 && sim->elements[r&0xFF].HeatConduct && ((r&0xFF)!=PT_HSWC||parts[r>>8].life==10)) || (r&0xFF)==PT_HFLM)
+ if (((r&0xFF)!=PT_C5 && parts[r>>8].temp<100 && sim->elements[r&0xFF].HeatConduct && ((r&0xFF)!=PT_HSWC||parts[r>>8].life==10)) || (r&0xFF)==PT_CFLM)
{
if (!(rand()%6))
{
- sim->part_change_type(i,x,y,PT_HFLM);
+ sim->part_change_type(i,x,y,PT_CFLM);
parts[r>>8].temp = parts[i].temp = 0;
parts[i].life = rand()%150+50;
sim->pv[y/CELL][x/CELL] += 1.5;