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 {
|
} else {
|
||||||
if (const TCastToConstPtr<CActor> act = mgr.GetObjectById(bestHint->GetFirstHelper())) {
|
if (const TCastToConstPtr<CActor> act = mgr.GetObjectById(bestHint->GetFirstHelper())) {
|
||||||
zeus::CVector3f ballPos = mgr.GetPlayer().GetBallPosition();
|
const zeus::CVector3f f26 = act->GetTranslation() - mgr.GetPlayer().GetBallPosition();
|
||||||
zeus::CVector3f f26 = act->GetTranslation() - ballPos;
|
|
||||||
zeus::CVector3f ballToHelper = f26;
|
zeus::CVector3f ballToHelper = f26;
|
||||||
if (ballToHelper.canBeNormalized()) {
|
if (ballToHelper.canBeNormalized()) {
|
||||||
ballToHelper.normalize();
|
ballToHelper.normalize();
|
||||||
|
|
Loading…
Reference in New Issue