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/Simulation.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/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index f037252..d59ac51 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -3016,7 +3016,7 @@ int Simulation::create_part(int p, int x, int y, int tv) case PT_PLSM: parts[i].life = rand()%150+50; break; - case PT_HFLM: + case PT_CFLM: parts[i].life = rand()%150+50; break; case PT_LAVA: @@ -3678,7 +3678,7 @@ void Simulation::update_particles_i(int start, int inc) (bmap[y/CELL][x/CELL]==WL_DESTROYALL) || (bmap[y/CELL][x/CELL]==WL_ALLOWLIQUID && elements[t].Falldown!=2) || (bmap[y/CELL][x/CELL]==WL_ALLOWSOLID && elements[t].Falldown!=1) || - (bmap[y/CELL][x/CELL]==WL_ALLOWGAS && !(elements[t].Properties&TYPE_GAS)) || //&& elements[t].Falldown!=0 && parts[i].type!=PT_FIRE && parts[i].type!=PT_SMKE && parts[i].type!=PT_HFLM) || + (bmap[y/CELL][x/CELL]==WL_ALLOWGAS && !(elements[t].Properties&TYPE_GAS)) || //&& elements[t].Falldown!=0 && parts[i].type!=PT_FIRE && parts[i].type!=PT_SMKE && parts[i].type!=PT_CFLM) || (bmap[y/CELL][x/CELL]==WL_ALLOWENERGY && !(elements[t].Properties&TYPE_ENERGY)) || (bmap[y/CELL][x/CELL]==WL_DETECT && (t==PT_METL || t==PT_SPRK)) || (bmap[y/CELL][x/CELL]==WL_EWALL && !emap[y/CELL][x/CELL])) && (t!=PT_STKM) && (t!=PT_STKM2) && (t!=PT_FIGH))) @@ -4038,7 +4038,7 @@ void Simulation::update_particles_i(int start, int inc) if (elements[t].State==ST_GAS&&elements[parts[i].type].State!=ST_GAS) pv[y/CELL][x/CELL] += 0.50f; part_change_type(i,x,y,t); - if (t==PT_FIRE||t==PT_PLSM||t==PT_HFLM) + if (t==PT_FIRE||t==PT_PLSM||t==PT_CFLM) parts[i].life = rand()%50+120; if (t==PT_LAVA) { if (parts[i].ctype==PT_BRMT) parts[i].ctype = PT_BMTL; |
