aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
authorJohannes Schickel2010-07-16 23:30:50 +0000
committerJohannes Schickel2010-07-16 23:30:50 +0000
commitddb364412e3286eb68479285abc567351f4b5b45 (patch)
tree9f146e508be9ae9879bce280bc07429897c23ad5 /engines/m4
parentbf17cc1053b4273ff21f069e161fdb38b4aec83a (diff)
downloadscummvm-rg350-ddb364412e3286eb68479285abc567351f4b5b45.tar.gz
scummvm-rg350-ddb364412e3286eb68479285abc567351f4b5b45.tar.bz2
scummvm-rg350-ddb364412e3286eb68479285abc567351f4b5b45.zip
Fix use of "&&" instead of "&" for bit masking. (This looks much more sensible at least!)
svn-id: r50953
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/mads_player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/m4/mads_player.cpp b/engines/m4/mads_player.cpp
index 5106d2210d..a8b6469771 100644
--- a/engines/m4/mads_player.cpp
+++ b/engines/m4/mads_player.cpp
@@ -634,7 +634,7 @@ int MadsPlayer::scanPath(M4Surface *depthSurface, const Common::Point &srcPos, c
// Outer horizontal movement loop
for (int yIndex = 0; yIndex < yDiff; ++yIndex) {
index += yDiff;
- int v = (*srcP && 0x7F) >> 4;
+ int v = (*srcP & 0x7F) >> 4;
if (v)
return v;
@@ -642,7 +642,7 @@ int MadsPlayer::scanPath(M4Surface *depthSurface, const Common::Point &srcPos, c
while (index >= xDiff) {
index -= xDiff;
- v = (*srcP && 0x7F) >> 4;
+ v = (*srcP & 0x7F) >> 4;
if (v)
return v;