mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 04:38:21 +00:00
use SetMaxSpeed
This commit is contained in:
parent
e3ae0b6304
commit
c70eb77c14
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user