aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormd52011-02-26 05:15:23 +0200
committermd52011-02-26 05:19:11 +0200
commit67aee1ebd85963b3034103a8681efabb33ea7b85 (patch)
tree2b06f0dc6f430a2d0b60e72641422c6ffb365431
parenta441069a4983f3a2b3c6402f1c8697003415fa55 (diff)
downloadscummvm-rg350-67aee1ebd85963b3034103a8681efabb33ea7b85.tar.gz
scummvm-rg350-67aee1ebd85963b3034103a8681efabb33ea7b85.tar.bz2
scummvm-rg350-67aee1ebd85963b3034103a8681efabb33ea7b85.zip
SCI: Slight cleanup in the animate code
-rw-r--r--engines/sci/graphics/animate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp
index 5f9c5b86d6..0eb7b954a4 100644
--- a/engines/sci/graphics/animate.cpp
+++ b/engines/sci/graphics/animate.cpp
@@ -371,7 +371,7 @@ void GfxAnimate::update() {
it->showBitsFlag = true;
it->signal &= ~(kSignalStopUpdate | kSignalViewUpdated | kSignalNoUpdate | kSignalForceUpdate);
- if ((it->signal & kSignalIgnoreActor) == 0) {
+ if (!(it->signal & kSignalIgnoreActor)) {
rect = it->celRect;
rect.top = CLIP<int16>(_ports->kernelPriorityToCoordinate(it->priority) - 1, rect.top, rect.bottom - 1);
_paint16->fillRect(rect, GFX_SCREEN_MASK_CONTROL, 0, 0, 15);
@@ -563,7 +563,7 @@ void GfxAnimate::addToPicDrawCels() {
// draw corresponding cel
_paint16->drawCel(view, it->loopNo, it->celNo, it->celRect, it->priority, it->paletteNo, it->scaleX, it->scaleY);
- if ((it->signal & kSignalIgnoreActor) == 0) {
+ if (!(it->signal & kSignalIgnoreActor)) {
it->celRect.top = CLIP<int16>(_ports->kernelPriorityToCoordinate(it->priority) - 1, it->celRect.top, it->celRect.bottom - 1);
_paint16->fillRect(it->celRect, GFX_SCREEN_MASK_CONTROL, 0, 0, 15);
}