CPlayerCameraBob: Make use of std::array where applicable

This commit is contained in:
Lioncash 2020-03-09 20:32:46 -04:00
parent d93df18a37
commit f622ed364d
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ const float CPlayerCameraBob::kCameraDamping = 6.f * std::sqrt(80.f);
CPlayerCameraBob::CPlayerCameraBob(ECameraBobType type, const zeus::CVector2f& vec, float bobPeriod)
: x0_type(type), x4_vec(vec), xc_bobPeriod(bobPeriod) {
std::fill(std::begin(x7c_wanderPoints), std::end(x7c_wanderPoints), zeus::skForward);
x7c_wanderPoints.fill(zeus::skForward);
}
zeus::CTransform CPlayerCameraBob::GetViewWanderTransform() const { return xd0_viewWanderXf; }

View File

@ -65,8 +65,8 @@ private:
float x70_landingTranslation = 0.f;
float x74_camVelocity = 0.f;
float x78_camTranslation = 0.f;
zeus::CVector3f x7c_wanderPoints[4];
float xb0_wanderPitches[4] = {};
std::array<zeus::CVector3f, 4> x7c_wanderPoints;
std::array<float, 4> xb0_wanderPitches{};
float xc4_wanderTime = 0.f;
float xc8_viewWanderSpeed = kViewWanderSpeedMin;
u32 xcc_wanderIndex = 0;