aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/projexpl.cpp
diff options
context:
space:
mode:
authorStrangerke2016-09-11 10:45:20 +0200
committerStrangerke2016-09-11 10:45:20 +0200
commitb17f3490f84bb7342d240f31e884984c38110425 (patch)
treec17f99e46b7dc922e5a193951c0166fa8c4fba4f /engines/dm/projexpl.cpp
parentf0a6f6b269fb121affa252e36d23c895c7d32e4e (diff)
downloadscummvm-rg350-b17f3490f84bb7342d240f31e884984c38110425.tar.gz
scummvm-rg350-b17f3490f84bb7342d240f31e884984c38110425.tar.bz2
scummvm-rg350-b17f3490f84bb7342d240f31e884984c38110425.zip
DM: Rework functions related to Directions in order to make them consistent and remove redundancy
Diffstat (limited to 'engines/dm/projexpl.cpp')
-rw-r--r--engines/dm/projexpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dm/projexpl.cpp b/engines/dm/projexpl.cpp
index 23c64c4e97..e3ee666046 100644
--- a/engines/dm/projexpl.cpp
+++ b/engines/dm/projexpl.cpp
@@ -425,7 +425,7 @@ void ProjExpl::processEvents48To49(TimelineEvent *event) {
uint16 projectileDirection = curEvent->_Cu._projectile.getDir();
projectileThingNewCell = Thing(curEvent->_Bu._slot);
uint16 projectileNewCell = projectileThingNewCell.getCell();
- bool projectileMovesToOtherSquare = (projectileDirection == projectileNewCell) || (_vm->returnNextVal(projectileDirection) == projectileNewCell);
+ bool projectileMovesToOtherSquare = (projectileDirection == projectileNewCell) || (_vm->turnDirRight(projectileDirection) == projectileNewCell);
if (projectileMovesToOtherSquare) {
sourceMapX = destinationMapX;
sourceMapY = destinationMapY;