Merge branch 'moreMovementAi' of https://github.com/DarkflameUniverse/DarkflameServer into moreMovementAi

This commit is contained in:
David Markowitz 2023-08-21 12:33:19 -07:00
commit 67cd990d98

View File

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