diff options
| author | cracker64 <cracker642@gmail.com> | 2013-02-27 05:11:23 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-02-27 05:11:23 (GMT) |
| commit | 27e3e1251837f5d64e835068d5f5bd5b67b95921 (patch) | |
| tree | af6383f7df96485633c91ebcfbe6318ee927403f /src/simulation/elements/FIRW.cpp | |
| parent | a62467c74e9391dd2a9173cfa167d32eceed506b (diff) | |
| download | powder-27e3e1251837f5d64e835068d5f5bd5b67b95921.zip powder-27e3e1251837f5d64e835068d5f5bd5b67b95921.tar.gz | |
Small optimizations number 2.
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() {} |
