aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dungeonman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/dungeonman.cpp')
-rw-r--r--engines/dm/dungeonman.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp
index ac38a07438..755a7d8cd7 100644
--- a/engines/dm/dungeonman.cpp
+++ b/engines/dm/dungeonman.cpp
@@ -360,11 +360,11 @@ CreatureInfo gCreatureInfo[kCreatureTypeCount] = { // @ G0243_as_Graphic559_Crea
{26, 0, 0x38AA, 0x0000, 12, 22, 255, 180, 210, 0, 130, 0x6369, 0xFF37, 0x0FBF, 0x0564, 0xFB52, 5}};
void DungeonMan::mapCoordsAfterRelMovement(direction dir, int16 stepsForward, int16 stepsRight, int16 &posX, int16 &posY) {
- posX += _dirIntoStepCountEast[dir] * stepsForward;
- posY += _dirIntoStepCountNorth[dir] * stepsForward;
+ posX += gDirIntoStepCountEast[dir] * stepsForward;
+ posY += gDirIntoStepCountNorth[dir] * stepsForward;
turnDirRight(dir);
- posX += _dirIntoStepCountEast[dir] * stepsRight;
- posY += _dirIntoStepCountNorth[dir] * stepsRight;
+ posX += gDirIntoStepCountEast[dir] * stepsRight;
+ posY += gDirIntoStepCountNorth[dir] * stepsRight;
}
DungeonMan::DungeonMan(DMEngine *dmEngine) : _vm(dmEngine), _rawDunFileData(NULL), _maps(NULL), _rawMapData(NULL) {