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:
David Markowitz 2023-03-27 01:13:34 -07:00
parent c415d0520a
commit 47445ada54

View File

@ -307,13 +307,12 @@ float MovementAIComponent::GetBaseSpeed(LOT lot) {
foundComponent: 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) { if (physicsComponent) speed = physicsComponent->speed;
speed = 8;
} else { if (speed == -1.0f) speed = 10.0f;
speed = physicsComponent->speed;
}
m_PhysicsSpeedCache[lot] = speed; m_PhysicsSpeedCache[lot] = speed;