2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-15 15:11:21 +00:00

CPlayerGun: Make use of bool literal where appropriate

Avoids a conversion to bool from int.
This commit is contained in:
Lioncash 2020-04-19 23:34:41 -04:00
parent 1fd28d3fc3
commit 1f8f3726e6

View File

@ -124,7 +124,7 @@ float CPlayerGun::CMotionState::gGunExtendDistance = 0.125f;
float CPlayerGun::skTractorBeamFactor = 0.5f / CPlayerState::GetMissileComboChargeFactor(); float CPlayerGun::skTractorBeamFactor = 0.5f / CPlayerState::GetMissileComboChargeFactor();
CPlayerGun::CPlayerGun(TUniqueId playerId) CPlayerGun::CPlayerGun(TUniqueId playerId)
: x0_lights(8, zeus::CVector3f{-30.f, 0.f, 30.f}, 4, 4, false, 0, 0, 0.1f) : x0_lights(8, zeus::CVector3f{-30.f, 0.f, 30.f}, 4, 4, false, false, 0, 0.1f)
, x538_playerId(playerId) , x538_playerId(playerId)
, x550_camBob(CPlayerCameraBob::ECameraBobType::One, CPlayerCameraBob::GetCameraBobExtent(), , x550_camBob(CPlayerCameraBob::ECameraBobType::One, CPlayerCameraBob::GetCameraBobExtent(),
CPlayerCameraBob::GetCameraBobPeriod()) CPlayerCameraBob::GetCameraBobPeriod())