CBomb: Make file-scope material filter constexpr

Allows the data to be placed into the read-only segment.
This commit is contained in:
Lioncash 2020-03-21 01:42:43 -04:00
parent 36ac0a8d78
commit 5b7e440ff7
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void CBomb::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManag
CActor::AcceptScriptMsg(msg, uid, mgr); CActor::AcceptScriptMsg(msg, uid, mgr);
} }
static CMaterialFilter kSolidFilter = constexpr CMaterialFilter kSolidFilter =
CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {EMaterialTypes::Character, EMaterialTypes::Player, CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {EMaterialTypes::Character, EMaterialTypes::Player,
EMaterialTypes::ProjectilePassthrough}); EMaterialTypes::ProjectilePassthrough});
void CBomb::Think(float dt, urde::CStateManager& mgr) { void CBomb::Think(float dt, urde::CStateManager& mgr) {