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

General: Mark CMaterialFilter instances constexpr where applicable

Allows omission of runtime overhead.
This commit is contained in:
Lioncash
2020-05-07 14:08:29 -04:00
parent 33411ceeca
commit 579ae79291
2 changed files with 2 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ void CEnvFxManager::UpdateBlockedGrids(CStateManager& mgr, EEnvFxType type, cons
if (type == EEnvFxType::UnderwaterFlake) {
grid.x14_block = std::make_pair(true, float(-FLT_MAX));
} else {
CMaterialFilter filter =
constexpr auto filter =
CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid, EMaterialTypes::Trigger},
{EMaterialTypes::ProjectilePassthrough, EMaterialTypes::SeeThrough});
zeus::CVector3f pos = xf * zeus::CVector3f((grid.x4_position + grid.xc_extent * 0).toVec2f() / 256.f) +