mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-15 07:11:20 +00:00
CPlayerGun: Make use of bool literal where appropriate
Avoids a conversion to bool from int.
This commit is contained in:
parent
1fd28d3fc3
commit
1f8f3726e6
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user