mirror of https://github.com/AxioDL/metaforce.git
CStateManager: Mark material filters and lists as constexpr in TestRayDamage()
Allows potential runtime initializers to be elided.
This commit is contained in:
parent
7774bc06ca
commit
aabc0b7114
|
@ -1572,10 +1572,10 @@ bool CStateManager::TestRayDamage(const zeus::CVector3f& pos, const CActor& dama
|
|||
if (!hInfo)
|
||||
return false;
|
||||
|
||||
static const CMaterialList incList(EMaterialTypes::Solid);
|
||||
static const CMaterialList exList(EMaterialTypes::ProjectilePassthrough, EMaterialTypes::Player,
|
||||
static constexpr CMaterialList incList(EMaterialTypes::Solid);
|
||||
static constexpr CMaterialList exList(EMaterialTypes::ProjectilePassthrough, EMaterialTypes::Player,
|
||||
EMaterialTypes::Occluder, EMaterialTypes::Character);
|
||||
static const CMaterialFilter filter(incList, exList, CMaterialFilter::EFilterType::IncludeExclude);
|
||||
static constexpr CMaterialFilter filter(incList, exList, CMaterialFilter::EFilterType::IncludeExclude);
|
||||
|
||||
std::optional<zeus::CAABox> bounds = damagee.GetTouchBounds();
|
||||
if (!bounds)
|
||||
|
|
Loading…
Reference in New Issue