Merge branch 'refactor/6677-2' into 'master'

#6677: Cleanup stopMovement

See merge request OpenMW/openmw!1730
pull/3226/head
psi29a 3 years ago
commit a1034f8f9c

@ -88,8 +88,9 @@ namespace MWMechanics
void stopMovement(const MWWorld::Ptr& actor) void stopMovement(const MWWorld::Ptr& actor)
{ {
actor.getClass().getMovementSettings(actor).mPosition[0] = 0; auto& movementSettings = actor.getClass().getMovementSettings(actor);
actor.getClass().getMovementSettings(actor).mPosition[1] = 0; movementSettings.mPosition[0] = 0;
movementSettings.mPosition[1] = 0;
} }
std::vector<unsigned char> getInitialIdle(const std::vector<unsigned char>& idle) std::vector<unsigned char> getInitialIdle(const std::vector<unsigned char>& idle)

Loading…
Cancel
Save