mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
ULTIMA8: Slow down to walk or step if animation ends off land.
This fixes most cases of running down stairs causing a jump. The original game tries harder to not end off land, but controls worse due to that.
This commit is contained in:
1 parent
bf6b5e615d
commit
fb504e06ec
1 file changed
+7
@@ -691,6 +691,13 @@ void U8AvatarMoverProcess::step(Animation::Sequence action, Direction direction,
|
||||
action = Animation::stand;
|
||||
}
|
||||
|
||||
if (action == Animation::walk && res == Animation::END_OFF_LAND) {
|
||||
action = Animation::step;
|
||||
}
|
||||
|
||||
if (action == Animation::run && res == Animation::END_OFF_LAND) {
|
||||
action = Animation::walk;
|
||||
}
|
||||
|
||||
bool moving = (action == Animation::run || action == Animation::walk);
|
||||
|
||||
|
||||
Reference in new issue
Block a user