2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 07:26:09 +00:00

CModel: Mark CModelFlag instances as constexpr where applicable

Allows more runtime initializes to potentially be elided.
This commit is contained in:
Lioncash
2020-04-11 16:53:59 -04:00
parent 7055b6983f
commit 75c07677ed
11 changed files with 20 additions and 20 deletions

View File

@@ -1674,8 +1674,8 @@ void CMorphBall::Render(const CStateManager& mgr, const CActorLights* lights) co
RenderMorphBallTransitionFlash(mgr);
if (x0_player.GetFrozenState()) {
CModelFlags fflags(0, 0, 3, zeus::skWhite);
x70_frozenBallModel->Render(mgr, zeus::CTransform::Translate(ballToWorld.origin), lights, fflags);
constexpr CModelFlags modelFlags(0, 0, 3, zeus::skWhite);
x70_frozenBallModel->Render(mgr, zeus::CTransform::Translate(ballToWorld.origin), lights, modelFlags);
}
RenderIceBreakEffect(mgr);