aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/mouse.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-03 12:38:43 +0200
committerEugene Sandulenko2016-10-03 12:38:43 +0200
commit281c19ab036f387a99192594aa645e696009f40b (patch)
treee4de335067b68ee83b76de33c9b7f86b4f016d35 /engines/bladerunner/mouse.cpp
parent77be430824ad0cafb0de9952ecb352ba4ad18571 (diff)
downloadscummvm-rg350-281c19ab036f387a99192594aa645e696009f40b.tar.gz
scummvm-rg350-281c19ab036f387a99192594aa645e696009f40b.tar.bz2
scummvm-rg350-281c19ab036f387a99192594aa645e696009f40b.zip
BLADERUNNER: Code formatting fixes
Diffstat (limited to 'engines/bladerunner/mouse.cpp')
-rw-r--r--engines/bladerunner/mouse.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/engines/bladerunner/mouse.cpp b/engines/bladerunner/mouse.cpp
index 14a2151e43..675e20c0fd 100644
--- a/engines/bladerunner/mouse.cpp
+++ b/engines/bladerunner/mouse.cpp
@@ -31,9 +31,7 @@
namespace BladeRunner {
-Mouse::Mouse(BladeRunnerEngine *vm)
- : _vm(vm)
-{
+Mouse::Mouse(BladeRunnerEngine *vm) : _vm(vm) {
_cursor = 0;
_frame = 3;
_hotspotX = 0;
@@ -248,8 +246,7 @@ void Mouse::updateCursorFrame() {
}
}
-void Mouse::tick(int x, int y)
-{
+void Mouse::tick(int x, int y) {
if (!_vm->playerHasControl() || isDisabled())
return;
@@ -288,8 +285,7 @@ void Mouse::tick(int x, int y)
if (true /* not in combat */) {
if (sceneObjectId == 0
|| (sceneObjectId >= 0 && isClickable)
- || _vm->_scene->_regions->getRegionAtXY(x, y) >= 0)
- {
+ || _vm->_scene->_regions->getRegionAtXY(x, y) >= 0) {
cursorId = 1;
}
setCursor(cursorId);
@@ -300,8 +296,7 @@ void Mouse::tick(int x, int y)
}
// TEST: RC01 after intro: [290, 216] -> [-204.589249 51.450668 7.659241]
-Vector3 Mouse::getXYZ(int x, int y)
-{
+Vector3 Mouse::getXYZ(int x, int y) {
if (_vm->_scene->getSetId() == -1)
return Vector3();