mirror of https://github.com/AxioDL/metaforce.git
CGunWeapon: Mark skShootAnim as constexpr
Enforce it as constexpr. The initializer is likely optimized away anyways, given the array only contains primitives, but this is more consistent.
This commit is contained in:
parent
96e3eaf726
commit
b631b5f3a1
|
@ -178,7 +178,7 @@ void CGunWeapon::UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::array<s32, 2> CGunWeapon::skShootAnim{4, 3};
|
constexpr std::array<s32, 2> CGunWeapon::skShootAnim{4, 3};
|
||||||
|
|
||||||
void CGunWeapon::Fire(bool underwater, float dt, EChargeState chargeState, const zeus::CTransform& xf,
|
void CGunWeapon::Fire(bool underwater, float dt, EChargeState chargeState, const zeus::CTransform& xf,
|
||||||
CStateManager& mgr, TUniqueId homingTarget, float chargeFactor1, float chargeFactor2) {
|
CStateManager& mgr, TUniqueId homingTarget, float chargeFactor1, float chargeFactor2) {
|
||||||
|
|
Loading…
Reference in New Issue