CPlayer: Make file-scope CMaterialFilter instances constexpr

Now that the interface is constexpr, we can mark these as constexpr.
This commit is contained in:
Lioncash 2019-09-19 15:17:51 -04:00
parent 9c2fd54546
commit 019ee29a0c
1 changed files with 4 additions and 4 deletions

View File

@ -37,17 +37,17 @@ namespace urde {
namespace {
logvisor::Module Log("urde::CPlayer");
const CMaterialFilter SolidMaterialFilter = CMaterialFilter::MakeInclude(CMaterialList(EMaterialTypes::Solid));
constexpr CMaterialFilter SolidMaterialFilter = CMaterialFilter::MakeInclude(CMaterialList(EMaterialTypes::Solid));
const CMaterialFilter LineOfSightFilter = CMaterialFilter::MakeIncludeExclude(
constexpr CMaterialFilter LineOfSightFilter = CMaterialFilter::MakeIncludeExclude(
{EMaterialTypes::Solid},
{EMaterialTypes::ProjectilePassthrough, EMaterialTypes::ScanPassthrough, EMaterialTypes::Player});
const CMaterialFilter OccluderFilter = CMaterialFilter::MakeIncludeExclude(
constexpr CMaterialFilter OccluderFilter = CMaterialFilter::MakeIncludeExclude(
{EMaterialTypes::Solid, EMaterialTypes::Occluder},
{EMaterialTypes::ProjectilePassthrough, EMaterialTypes::ScanPassthrough, EMaterialTypes::Player});
const CMaterialFilter BallTransitionCollide = CMaterialFilter::MakeIncludeExclude(
constexpr CMaterialFilter BallTransitionCollide = CMaterialFilter::MakeIncludeExclude(
{EMaterialTypes::Solid}, {EMaterialTypes::ProjectilePassthrough, EMaterialTypes::Player, EMaterialTypes::Character,
EMaterialTypes::CameraPassthrough});