mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-12 09:26:09 +00:00
CDamageInfo: Make certain constructors constexpr
Allows eliminating potential runtime static constructors by allowing file-scope instances to be declared constexpr.
This commit is contained in:
@@ -2045,7 +2045,7 @@ float CMorphBall::ComputeMaxSpeed() const {
|
||||
return g_tweakBall->GetBallTranslationMaxSpeed(int(x0_player.GetSurfaceRestraint()));
|
||||
}
|
||||
|
||||
static const CDamageInfo kBallDamage = {CWeaponMode(EWeaponType::BoostBall), 50000.f, 0.f, 0.f};
|
||||
constexpr CDamageInfo kBallDamage = {CWeaponMode(EWeaponType::BoostBall), 50000.f, 0.f, 0.f};
|
||||
|
||||
void CMorphBall::Touch(CActor& actor, CStateManager& mgr) {
|
||||
if (TCastToPtr<CPhysicsActor> act = actor) {
|
||||
|
||||
Reference in New Issue
Block a user