mirror of https://github.com/AxioDL/metaforce.git
CCameraManager: Eliminate variable shadowing
We can get rid of shadowing in an inner scope.
This commit is contained in:
parent
8e263ff11b
commit
89e2e65100
|
@ -398,8 +398,7 @@ void CCameraManager::UpdateCameraHints(float, CStateManager& mgr) {
|
|||
}
|
||||
} else {
|
||||
if (const TCastToConstPtr<CActor> act = mgr.GetObjectById(bestHint->GetFirstHelper())) {
|
||||
zeus::CVector3f ballPos = mgr.GetPlayer().GetBallPosition();
|
||||
zeus::CVector3f f26 = act->GetTranslation() - ballPos;
|
||||
const zeus::CVector3f f26 = act->GetTranslation() - mgr.GetPlayer().GetBallPosition();
|
||||
zeus::CVector3f ballToHelper = f26;
|
||||
if (ballToHelper.canBeNormalized()) {
|
||||
ballToHelper.normalize();
|
||||
|
|
Loading…
Reference in New Issue