1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 12:39:59 +00:00

Cleanup stopMovement

This commit is contained in:
ζeh Matt 2022-03-29 19:49:02 +03:00
parent 9ff34da59e
commit c3d02492df
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0

View File

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