mirror of https://github.com/AxioDL/metaforce.git
CScriptSpiderBallWaypoint: Small fix in GetClosestPointAlongWaypoints
This commit is contained in:
parent
a491e2e9f2
commit
f510f1904c
|
@ -197,7 +197,7 @@ void CScriptSpiderBallWaypoint::GetClosestPointAlongWaypoints(CStateManager& mgr
|
||||||
closestPoint = lastPoint;
|
closestPoint = lastPoint;
|
||||||
if (wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check) != kInvalidUniqueId) {
|
if (wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check) != kInvalidUniqueId) {
|
||||||
wp = static_cast<const CScriptSpiderBallWaypoint*>(
|
wp = static_cast<const CScriptSpiderBallWaypoint*>(
|
||||||
mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::SkipCheck)));
|
mgr.GetObjectById(wp->PreviousWaypoint(mgr, ECheckActiveWaypoint::Check)));
|
||||||
deltaBetweenPoints = lastPoint - wp->GetTranslation();
|
deltaBetweenPoints = lastPoint - wp->GetTranslation();
|
||||||
interpDeltaBetweenPoints = deltaBetweenPoints;
|
interpDeltaBetweenPoints = deltaBetweenPoints;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue