mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-23 06:41:08 +00:00
Cleanup stopMovement
This commit is contained in:
parent
9ff34da59e
commit
c3d02492df
@ -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…
x
Reference in New Issue
Block a user