From be12f7a835aa72f7d9a04d9277d3df1b76279ca7 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 11 Sep 2016 23:31:46 +0200 Subject: DM: Fix another variable shadowing. NOTE: This affects the logic flow, so needs to be checked against original --- engines/dm/movesens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/dm') diff --git a/engines/dm/movesens.cpp b/engines/dm/movesens.cpp index 0bc77d51c1..326affc907 100644 --- a/engines/dm/movesens.cpp +++ b/engines/dm/movesens.cpp @@ -354,7 +354,7 @@ bool MovesensMan::getMoveResult(Thing thing, int16 mapX, int16 mapY, int16 destM direction = _vm->_dungeonMan->getStairsExitDirection(destMapX, destMapY); destMapX += _vm->_dirIntoStepCountEast[direction], destMapY += _vm->_dirIntoStepCountNorth[direction]; direction = _vm->returnOppositeDir((Direction)direction); - uint16 thingCell = thing.getCell(); + thingCell = thing.getCell(); thingCell = _vm->normalizeModulo4((((thingCell - direction + 1) & 0x0002) >> 1) + direction); thing = _vm->thingWithNewCell(thing, thingCell); } else -- cgit v1.2.3