diff options
author | Filippos Karapetis | 2016-03-01 01:23:55 +0200 |
---|---|---|
committer | Filippos Karapetis | 2016-03-01 01:23:55 +0200 |
commit | e317958d4cdfb5d4cfe934c577be8f06e8689565 (patch) | |
tree | d63443d2bb55991230022bba33be0ed7043ce8be /engines | |
parent | cdbd7c8add6ebaad15cc6498b09d806c4f2a3fe1 (diff) | |
download | scummvm-rg350-e317958d4cdfb5d4cfe934c577be8f06e8689565.tar.gz scummvm-rg350-e317958d4cdfb5d4cfe934c577be8f06e8689565.tar.bz2 scummvm-rg350-e317958d4cdfb5d4cfe934c577be8f06e8689565.zip |
SCI: Remove superfluous cast to boolean and fix code styling
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/object.cpp | 5 |
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); |