diff options
| author | Colin Snover | 2017-11-08 16:46:05 -0600 |
|---|---|---|
| committer | Colin Snover | 2017-11-10 09:57:03 -0600 |
| commit | 51329c0dc6ee56d8b843f058aa3257ec9f30b71a (patch) | |
| tree | 85a171532e169bcce6f34a8c3d06555863ab4d0d /engines/dm/projexpl.cpp | |
| parent | 2de83e09374abd10700e5f2bc4671318f182980b (diff) | |
| download | scummvm-rg350-51329c0dc6ee56d8b843f058aa3257ec9f30b71a.tar.gz scummvm-rg350-51329c0dc6ee56d8b843f058aa3257ec9f30b71a.tar.bz2 scummvm-rg350-51329c0dc6ee56d8b843f058aa3257ec9f30b71a.zip | |
ALL: Fix misuse of comma operator
Diffstat (limited to 'engines/dm/projexpl.cpp')
| -rw-r--r-- | engines/dm/projexpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/dm/projexpl.cpp b/engines/dm/projexpl.cpp index 85767cd633..e8b0f4a143 100644 --- a/engines/dm/projexpl.cpp +++ b/engines/dm/projexpl.cpp @@ -429,7 +429,8 @@ void ProjExpl::processEvents48To49(TimelineEvent *event) { if (projectileMovesToOtherSquare) { sourceMapX = destinationMapX; sourceMapY = destinationMapY; - destinationMapX += _vm->_dirIntoStepCountEast[projectileDirection], destinationMapY += _vm->_dirIntoStepCountNorth[projectileDirection]; + destinationMapX += _vm->_dirIntoStepCountEast[projectileDirection]; + destinationMapY += _vm->_dirIntoStepCountNorth[projectileDirection]; Square destSquare = _vm->_dungeonMan->getSquare(destinationMapX, destinationMapY); ElementType destSquareType = destSquare.getType(); if ((destSquareType == kDMElementTypeWall) || |
