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