CCameraManager: Eliminate variable shadowing

We can get rid of shadowing in an inner scope.
This commit is contained in:
Lioncash 2020-04-10 13:43:52 -04:00
parent 8e263ff11b
commit 89e2e65100
1 changed files with 1 additions and 2 deletions

View File

@ -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();