aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2016-06-17 22:42:39 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit75db418e64e7e8753c5c8ab48f322e425c31f9b4 (patch)
treecda3186aeefd4da61d9590a91f5d2b183405d870 /engines
parent42567b744d4a8a2dcc3055d4d43058a1d34fe1c0 (diff)
downloadscummvm-rg350-75db418e64e7e8753c5c8ab48f322e425c31f9b4.tar.gz
scummvm-rg350-75db418e64e7e8753c5c8ab48f322e425c31f9b4.tar.bz2
scummvm-rg350-75db418e64e7e8753c5c8ab48f322e425c31f9b4.zip
DM: Fix a couple of warnings
Diffstat (limited to 'engines')
-rw-r--r--engines/dm/dungeonman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp
index efff5ff16c..35b299d2be 100644
--- a/engines/dm/dungeonman.cpp
+++ b/engines/dm/dungeonman.cpp
@@ -594,12 +594,12 @@ T0172030_Pit:
aspectArray[kTeleporterVisibleAspect] = square.get(kTeleporterOpen) && square.get(kTeleporterVisible);
goto T0172029_Teleporter;
case kStairsElemType:
- aspectArray[kElemAspect] = ((square.get(kStairsNorthSouthOrient) >> 3) == isOrientedWestEast(dir)) ? kStairsSideElemType : kStairsFrontElemType;
+ aspectArray[kElemAspect] = ((square.get(kStairsNorthSouthOrient) >> 3) == (isOrientedWestEast(dir) ? 1 : 0)) ? kStairsSideElemType : kStairsFrontElemType;
aspectArray[kStairsUpAspect] = square.get(kStairsUp);
footPrintsAllowed = false;
goto T0172046_Stairs;
case kDoorElemType:
- if ((square.get(kDoorNorthSouthOrient) >> 3) == isOrientedWestEast(dir)) {
+ if ((square.get(kDoorNorthSouthOrient) >> 3) == (isOrientedWestEast(dir) ? 1 : 0)) {
aspectArray[kElemAspect] = kDoorSideElemType;
} else {
aspectArray[kElemAspect] = kDoorFrontElemType;