aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2010-06-26 20:28:42 +0000
committerWillem Jan Palenstijn2010-06-26 20:28:42 +0000
commitcaded4f892905eb8821ba9431ec2119aab6facd9 (patch)
treebb4f0cfa0064a0f36f1d1597642d107bd48840b8 /engines/sci
parent710fc6c71e21bb0b3b9f7f89cdaf9445450df2e2 (diff)
downloadscummvm-rg350-caded4f892905eb8821ba9431ec2119aab6facd9.tar.gz
scummvm-rg350-caded4f892905eb8821ba9431ec2119aab6facd9.tar.bz2
scummvm-rg350-caded4f892905eb8821ba9431ec2119aab6facd9.zip
Improve readability
svn-id: r50340
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/animate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp
index 08ff3bfc80..2f1e1e726c 100644
--- a/engines/sci/graphics/animate.cpp
+++ b/engines/sci/graphics/animate.cpp
@@ -331,7 +331,8 @@ void GfxAnimate::update() {
writeSelectorValue(_s->_segMan, curObject, SELECTOR(underBits), 0);
}
signal &= 0xFFFF ^ kSignalForceUpdate;
- signal &= signal & kSignalViewUpdated ? 0xFFFF ^ (kSignalViewUpdated | kSignalNoUpdate) : 0xFFFF;
+ if (signal & kSignalViewUpdated)
+ signal &= ~(kSignalViewUpdated | kSignalNoUpdate);
} else if (signal & kSignalStopUpdate) {
signal = (signal & (0xFFFF ^ kSignalStopUpdate)) | kSignalNoUpdate;
}