diff options
author | Max Horn | 2003-03-24 21:56:29 +0000 |
---|---|---|
committer | Max Horn | 2003-03-24 21:56:29 +0000 |
commit | c98130a0a68b0b605e283dacdecc1e4a21f95ba7 (patch) | |
tree | 0e08dfb422c4480b7f40bb91875cfead2083c628 /scumm/actor.cpp | |
parent | 12c0a6834a4681981a0d0bbea3fbc38cec45924c (diff) | |
download | scummvm-rg350-c98130a0a68b0b605e283dacdecc1e4a21f95ba7.tar.gz scummvm-rg350-c98130a0a68b0b605e283dacdecc1e4a21f95ba7.tar.bz2 scummvm-rg350-c98130a0a68b0b605e283dacdecc1e4a21f95ba7.zip |
cleanup
svn-id: r6855
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r-- | scumm/actor.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 15c2be6226..9a4708ab60 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1112,10 +1112,8 @@ void Scumm::setActorRedrawFlags(bool fg, bool bg) { if (_fullRedraw) { for (j = 1; j < NUM_ACTORS; j++) { Actor *a = derefActor(j); - if (fg) - a->needRedraw = true; - if (bg) - a->needBgReset = true; + a->needRedraw |= fg; + a->needBgReset |= bg; } } else { for (i = 0; i < gdi._numStrips; i++) { @@ -1125,10 +1123,8 @@ void Scumm::setActorRedrawFlags(bool fg, bool bg) { if (testGfxUsageBit(strip, j) && testGfxOtherUsageBits(strip, j)) { Actor *a = derefActor(j); assert(a->number == j); - if (fg) - a->needRedraw = true; - if (bg) - a->needBgReset = true; + a->needRedraw |= fg; + a->needBgReset |= bg; } } } |