aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-02 19:21:10 -0400
committerPaul Gilbert2015-07-02 19:21:10 -0400
commit10e3e4811cb930dcfc5a5e6422b07b7a6f24ef67 (patch)
tree0a92ccd3f0ee587ca416908bfed4c02dbb5f512f
parent453a800754dcc512247d0daa768c866e929f291a (diff)
downloadscummvm-rg350-10e3e4811cb930dcfc5a5e6422b07b7a6f24ef67.tar.gz
scummvm-rg350-10e3e4811cb930dcfc5a5e6422b07b7a6f24ef67.tar.bz2
scummvm-rg350-10e3e4811cb930dcfc5a5e6422b07b7a6f24ef67.zip
SHERLOCK: RT: Fix moving too far vertically when walking
-rw-r--r--engines/sherlock/tattoo/tattoo_people.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp
index 42a7d26a7d..f22ce87574 100644
--- a/engines/sherlock/tattoo/tattoo_people.cpp
+++ b/engines/sherlock/tattoo/tattoo_people.cpp
@@ -454,11 +454,11 @@ void TattooPerson::setWalking() {
// and set the delta Y depending on the direction
if (_walkDest.y < (_position.y / FIXED_INT_MULTIPLIER)) {
_sequenceNumber = WALK_UP;
- _delta.y = speed.y * -FIXED_INT_MULTIPLIER;
+ _delta.y = speed.y * -(FIXED_INT_MULTIPLIER / 10);
} else {
speed.y = diagSpeed.y;
_sequenceNumber = WALK_DOWN;
- _delta.y = speed.y * FIXED_INT_MULTIPLIER;
+ _delta.y = speed.y * (FIXED_INT_MULTIPLIER / 10);
}
// Set the delta x