mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
SHERLOCK: RT: Fix moving too far vertically when walking
This commit is contained in:
parent
453a800754
commit
10e3e4811c
@ -454,11 +454,11 @@ void TattooPerson::setWalking() {
|
|||||||
// and set the delta Y depending on the direction
|
// and set the delta Y depending on the direction
|
||||||
if (_walkDest.y < (_position.y / FIXED_INT_MULTIPLIER)) {
|
if (_walkDest.y < (_position.y / FIXED_INT_MULTIPLIER)) {
|
||||||
_sequenceNumber = WALK_UP;
|
_sequenceNumber = WALK_UP;
|
||||||
_delta.y = speed.y * -FIXED_INT_MULTIPLIER;
|
_delta.y = speed.y * -(FIXED_INT_MULTIPLIER / 10);
|
||||||
} else {
|
} else {
|
||||||
speed.y = diagSpeed.y;
|
speed.y = diagSpeed.y;
|
||||||
_sequenceNumber = WALK_DOWN;
|
_sequenceNumber = WALK_DOWN;
|
||||||
_delta.y = speed.y * FIXED_INT_MULTIPLIER;
|
_delta.y = speed.y * (FIXED_INT_MULTIPLIER / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the delta x
|
// Set the delta x
|
||||||
|
Loading…
Reference in New Issue
Block a user