From 75db418e64e7e8753c5c8ab48f322e425c31f9b4 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 17 Jun 2016 22:42:39 +0200 Subject: DM: Fix a couple of warnings --- engines/dm/dungeonman.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3