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