This commit is contained in:
David Markowitz 2023-08-14 20:15:25 -07:00
parent a63d7df0d2
commit abce40f17f

View File

@ -119,8 +119,7 @@ void MovementAIComponent::Update(const float deltaTime) {
// If we have no acceleration, then we have no max speed. // If we have no acceleration, then we have no max speed.
// If we have no base speed, then we cannot scale the speed by it. // If we have no base speed, then we cannot scale the speed by it.
// Do we have another waypoint to seek? // Do we have another waypoint to seek?
if (m_Acceleration > 0 && m_BaseSpeed > 0 && AdvanceWaypointIndex()) if (m_Acceleration > 0 && m_BaseSpeed > 0 && AdvanceWaypointIndex()) {
{
m_NextWaypoint = GetCurrentWaypoint(); m_NextWaypoint = GetCurrentWaypoint();
if (m_NextWaypoint == source) { if (m_NextWaypoint == source) {