diff options
| author | Pilihp <pilihp@pilihp-Z68MA-D2H-B3.(none)> | 2013-02-26 23:42:36 (GMT) |
|---|---|---|
| committer | Pilihp <pilihp@pilihp-Z68MA-D2H-B3.(none)> | 2013-02-26 23:42:36 (GMT) |
| commit | 8d66b62e3d237cca2a8489cae21001170d58d590 (patch) | |
| tree | ddbc36591a9043334b2fc684722ffd334894da83 /src/simulation/elements/BIZR.cpp | |
| parent | e700ff29883fcc3479ad8d9fce9805fbb0d31dfa (diff) | |
| download | powder-8d66b62e3d237cca2a8489cae21001170d58d590.zip powder-8d66b62e3d237cca2a8489cae21001170d58d590.tar.gz | |
Lots of small optimizations and things, nothing should be functionally different.
Only gotten through a few elements, more later.
Diffstat (limited to 'src/simulation/elements/BIZR.cpp')
| -rw-r--r-- | src/simulation/elements/BIZR.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/elements/BIZR.cpp b/src/simulation/elements/BIZR.cpp index 13df996..f2327de 100644 --- a/src/simulation/elements/BIZR.cpp +++ b/src/simulation/elements/BIZR.cpp @@ -82,7 +82,7 @@ int Element_BIZR::update(UPDATE_FUNC_ARGS) } } } - if(((r = sim->photons[y][x])&0xFF)==PT_PHOT || ((r = pmap[y][x])&0xFF)==PT_PHOT) + if(((r = sim->photons[y][x])&0xFF)==PT_PHOT) { sim->part_change_type(r>>8, x, y, PT_ELEC); parts[r>>8].ctype = 0; @@ -121,4 +121,4 @@ int Element_BIZR::graphics(GRAPHICS_FUNC_ARGS) } -Element_BIZR::~Element_BIZR() {}
\ No newline at end of file +Element_BIZR::~Element_BIZR() {} |
