aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/bbdou
diff options
context:
space:
mode:
authorEric Fry2018-06-28 22:50:20 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit8e43261d13a81131e0be0bfc75627f7395f78a90 (patch)
treee6f2d38900233da689bb59d3ec293f14b510a4b6 /engines/illusions/bbdou
parentfee1f3d8cb065182322bc80aba39a66a1b4b0cfb (diff)
downloadscummvm-rg350-8e43261d13a81131e0be0bfc75627f7395f78a90.tar.gz
scummvm-rg350-8e43261d13a81131e0be0bfc75627f7395f78a90.tar.bz2
scummvm-rg350-8e43261d13a81131e0be0bfc75627f7395f78a90.zip
ILLUSIONS: Formatting fixes
Simplified some point arithmetic Lock fixedpoint calcs to float rather than double
Diffstat (limited to 'engines/illusions/bbdou')
-rw-r--r--engines/illusions/bbdou/bbdou_specialcode.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/illusions/bbdou/bbdou_specialcode.cpp b/engines/illusions/bbdou/bbdou_specialcode.cpp
index 2d8df43f23..c7e79a722b 100644
--- a/engines/illusions/bbdou/bbdou_specialcode.cpp
+++ b/engines/illusions/bbdou/bbdou_specialcode.cpp
@@ -531,10 +531,7 @@ void BbdouSpecialCode::setCursorControlRoutine(uint32 objectId, int num) {
}
Common::Point BbdouSpecialCode::getBackgroundCursorPos(Common::Point cursorPos) {
- Common::Point pt = _vm->_camera->getScreenOffset();
- pt.x += cursorPos.x;
- pt.y += cursorPos.y;
- return pt;
+ return _vm->_camera->getScreenOffset() + cursorPos;
}
void BbdouSpecialCode::showBubble(uint32 objectId, uint32 overlappedObjectId, uint32 holdingObjectId,