Core/Movement: flight waypoint movement is now correctly using catmullrom and uncompressed splines

This commit is contained in:
Ovahlord
2021-03-24 11:09:12 +01:00
parent a06ed4c848
commit 317bc49501

View File

@@ -232,6 +232,13 @@ void WaypointMovementGenerator<Creature>::StartMove(Creature* creature, bool rel
break;
}
if (creature->CanFly())
{
init.SetFly();
init.SetSmooth();
init.SetUncompressed();
}
if (waypoint.Velocity > 0.f)
init.SetVelocity(waypoint.Velocity);