aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;