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:
Matthew Jimenez committed 2023-10-11 20:30:44 -05:00
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);