mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 08:27:43 +00:00
CModel: Mark CModelFlag instances as constexpr where applicable
Allows more runtime initializes to potentially be elided.
This commit is contained in:
@@ -235,7 +235,7 @@ void CProjectileWeapon::Render() {
|
||||
std::vector<CLight> useLights;
|
||||
useLights.push_back(CLight::BuildLocalAmbient({}, xc8_ambientLightColor));
|
||||
(**x108_model).GetInstance().ActivateLights(useLights);
|
||||
CModelFlags flags(0, 0, 3, zeus::skWhite);
|
||||
constexpr CModelFlags flags(0, 0, 3, zeus::skWhite);
|
||||
(*x108_model)->Draw(flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user