diff options
Diffstat (limited to 'src/simulation/elements/FIRW.cpp')
| -rw-r--r-- | src/simulation/elements/FIRW.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/FIRW.cpp b/src/simulation/elements/FIRW.cpp index bc047df..3863c94 100644 --- a/src/simulation/elements/FIRW.cpp +++ b/src/simulation/elements/FIRW.cpp @@ -62,7 +62,7 @@ int Element_FIRW::update(UPDATE_FUNC_ARGS) r = pmap[y+ry][x+rx]; if (!r) continue; - rt = parts[r>>8].type; + rt = r&0xFF; if (rt==PT_FIRE||rt==PT_PLSM||rt==PT_THDR) { float gx, gy, multiplier; @@ -89,7 +89,7 @@ int Element_FIRW::update(UPDATE_FUNC_ARGS) parts[i].flags &= ~FLAG_STAGNANT; } } - else if (parts[i].tmp>=2) + else //if (parts[i].tmp>=2) { float angle, magnitude; int caddress = (rand()%200)*3; @@ -131,4 +131,4 @@ int Element_FIRW::graphics(GRAPHICS_FUNC_ARGS) } -Element_FIRW::~Element_FIRW() {}
\ No newline at end of file +Element_FIRW::~Element_FIRW() {} |
