mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Fix Wingreaper birds not moving
Fix an issue where the Wingreaper birds no longer moved. The client seems to do the following: Default speed set to 10.0f Check the PhysicsComponent table for the column speed and if it exists set speed to that value and if the value was null set it to the default again.
This commit is contained in:
parent
c415d0520a
commit
47445ada54
@ -307,13 +307,12 @@ float MovementAIComponent::GetBaseSpeed(LOT lot) {
|
||||
|
||||
foundComponent:
|
||||
|
||||
float speed;
|
||||
// Client defaults speed to 10 and if the speed is also null in the table, it defaults to 10.
|
||||
float speed = 10.0f;
|
||||
|
||||
if (physicsComponent == nullptr) {
|
||||
speed = 8;
|
||||
} else {
|
||||
speed = physicsComponent->speed;
|
||||
}
|
||||
if (physicsComponent) speed = physicsComponent->speed;
|
||||
|
||||
if (speed == -1.0f) speed = 10.0f;
|
||||
|
||||
m_PhysicsSpeedCache[lot] = speed;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user