aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2016-03-01 01:23:55 +0200
committerFilippos Karapetis2016-03-01 01:23:55 +0200
commite317958d4cdfb5d4cfe934c577be8f06e8689565 (patch)
treed63443d2bb55991230022bba33be0ed7043ce8be
parentcdbd7c8add6ebaad15cc6498b09d806c4f2a3fe1 (diff)
downloadscummvm-rg350-e317958d4cdfb5d4cfe934c577be8f06e8689565.tar.gz
scummvm-rg350-e317958d4cdfb5d4cfe934c577be8f06e8689565.tar.bz2
scummvm-rg350-e317958d4cdfb5d4cfe934c577be8f06e8689565.zip
SCI: Remove superfluous cast to boolean and fix code styling
-rw-r--r--engines/sci/engine/object.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/object.cpp b/engines/sci/engine/object.cpp
index 65c85a8e1b..0566d6955f 100644
--- a/engines/sci/engine/object.cpp
+++ b/engines/sci/engine/object.cpp
@@ -272,7 +272,7 @@ void Object::initSelectorsSci3(const byte *buf) {
// This object actually has selectors belonging to this group
int typeMask = READ_SCI11ENDIAN_UINT32(seeker);
- _mustSetViewVisible[groupNr] = !!(typeMask & 1);
+ _mustSetViewVisible[groupNr] = (typeMask & 1);
for (int bit = 2; bit < 32; ++bit) {
int value = READ_SCI11ENDIAN_UINT16(seeker + bit * 2);
@@ -285,7 +285,8 @@ void Object::initSelectorsSci3(const byte *buf) {
}
}
- } else _mustSetViewVisible[groupNr] = false;
+ } else
+ _mustSetViewVisible[groupNr] = false;
}
_variables.resize(properties);