diff options
author | Eugene Sandulenko | 2016-09-11 23:31:46 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-11 23:32:40 +0200 |
commit | be12f7a835aa72f7d9a04d9277d3df1b76279ca7 (patch) | |
tree | 8f0d3e521eedde9d4f8d45700badce70de45ff07 /engines/dm | |
parent | a48d15c758852f6e25092bc10b02a6c437f87997 (diff) | |
download | scummvm-rg350-be12f7a835aa72f7d9a04d9277d3df1b76279ca7.tar.gz scummvm-rg350-be12f7a835aa72f7d9a04d9277d3df1b76279ca7.tar.bz2 scummvm-rg350-be12f7a835aa72f7d9a04d9277d3df1b76279ca7.zip |
DM: Fix another variable shadowing.
NOTE: This affects the logic flow, so needs to be checked against original
Diffstat (limited to 'engines/dm')
-rw-r--r-- | engines/dm/movesens.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |