mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-24 14:33:34 +00:00
fix delay
This commit is contained in:
parent
5612e57590
commit
8dd7553421
@ -149,7 +149,9 @@ void MovementAIComponent::HandleWaypointCommandUnequipInventory(const std::strin
|
||||
float MovementAIComponent::HandleWaypointCommandDelay(const std::string& data) {
|
||||
float delay = 0.0f;
|
||||
std::string delayString = data;
|
||||
if (!GeneralUtils::TryParse<float>(delayString, delay)) return;
|
||||
if (!GeneralUtils::TryParse<float>(delayString, delay)){
|
||||
Game::logger->LogDebug("MovementAIComponentAronwk", "Failed to parse delay %s", data.c_str());
|
||||
}
|
||||
return delay;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user