aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scene.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-13 10:13:53 -0400
committerPaul Gilbert2015-06-13 10:13:53 -0400
commitd9ccf57dd019d4694efa4375b284a9a438a37908 (patch)
treeaefa1299ca23083c1d588c0dd2e7dce207076f72 /engines/sherlock/scene.cpp
parentcfb089115362e23e46adcaef8cdedc3570129132 (diff)
downloadscummvm-rg350-d9ccf57dd019d4694efa4375b284a9a438a37908.tar.gz
scummvm-rg350-d9ccf57dd019d4694efa4375b284a9a438a37908.tar.bz2
scummvm-rg350-d9ccf57dd019d4694efa4375b284a9a438a37908.zip
SHERLOCK: RT: Fix getting default scene player position
Diffstat (limited to 'engines/sherlock/scene.cpp')
-rw-r--r--engines/sherlock/scene.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index 78c7acbd55..22a0e3620e 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -1031,8 +1031,13 @@ void Scene::transitionToScene() {
}
} else {
// setup entrance info
- hSavedPos.x = _entrance._startPosition.x * FIXED_INT_MULTIPLIER / 100;
- hSavedPos.y = _entrance._startPosition.y * FIXED_INT_MULTIPLIER / 100;
+ hSavedPos.x = _entrance._startPosition.x * FIXED_INT_MULTIPLIER;
+ hSavedPos.y = _entrance._startPosition.y * FIXED_INT_MULTIPLIER;
+ if (IS_SERRATED_SCALPEL) {
+ hSavedPos.x /= 100;
+ hSavedPos.y /= 100;
+ }
+
hSavedFacing = _entrance._startDir;
}
} else {