mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-07 02:33:28 +00:00
CPlayer: Make use of std::make_unique for x76c_cameraBob
Same behavior, but more consistent with other usages of std::make_unique.
This commit is contained in:
parent
e956402956
commit
e7e73e8658
@ -225,9 +225,9 @@ CPlayer::CPlayer(TUniqueId uid, const zeus::CTransform& xf, const zeus::CAABox&
|
|||||||
x490_gun = std::make_unique<CPlayerGun>(uid);
|
x490_gun = std::make_unique<CPlayerGun>(uid);
|
||||||
x49c_gunHolsterRemTime = g_tweakPlayerGun->GetGunNotFiringTime();
|
x49c_gunHolsterRemTime = g_tweakPlayerGun->GetGunNotFiringTime();
|
||||||
x4a0_failsafeTest = std::make_unique<CFailsafeTest>();
|
x4a0_failsafeTest = std::make_unique<CFailsafeTest>();
|
||||||
x76c_cameraBob.reset(new CPlayerCameraBob(CPlayerCameraBob::ECameraBobType::One,
|
x76c_cameraBob =
|
||||||
CPlayerCameraBob::GetCameraBobExtent(),
|
std::make_unique<CPlayerCameraBob>(CPlayerCameraBob::ECameraBobType::One, CPlayerCameraBob::GetCameraBobExtent(),
|
||||||
CPlayerCameraBob::GetCameraBobPeriod()));
|
CPlayerCameraBob::GetCameraBobPeriod());
|
||||||
x9c4_26_ = true;
|
x9c4_26_ = true;
|
||||||
x9c4_27_canEnterMorphBall = true;
|
x9c4_27_canEnterMorphBall = true;
|
||||||
x9c4_28_canLeaveMorphBall = true;
|
x9c4_28_canLeaveMorphBall = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user