use SetMaxSpeed

This commit is contained in:
Aaron Kimbre 2023-08-20 02:19:34 -05:00
parent e3ae0b6304
commit c70eb77c14

View File

@ -168,7 +168,7 @@ void MovementAIComponent::HandleWaypointCommandTeleport(const std::string& data)
void MovementAIComponent::HandleWaypointCommandPathSpeed(const std::string& data) {
float speed = 0.0;
if (!GeneralUtils::TryParse<float>(data, speed)) return;
SetCurrentSpeed(speed);
SetMaxSpeed(speed);
}
void MovementAIComponent::HandleWaypointCommandRemoveNPC(const std::string& data) {