From 5fc0802373f21533da93923a9b0c60081bd4d4f1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 12 Apr 2020 10:21:32 -0400 Subject: [PATCH] CPathCamera: Mark kLineOfSightFilter as constexpr Same behavior, minus any potential runtime initializers. --- Runtime/Camera/CPathCamera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Camera/CPathCamera.cpp b/Runtime/Camera/CPathCamera.cpp index ef43a8111..ea39057ae 100644 --- a/Runtime/Camera/CPathCamera.cpp +++ b/Runtime/Camera/CPathCamera.cpp @@ -79,7 +79,7 @@ void CPathCamera::ProcessInput(const CFinalInput&, CStateManager& mgr) { // Empty } -static const CMaterialFilter kLineOfSightFilter = +constexpr CMaterialFilter kLineOfSightFilter = CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {EMaterialTypes::ProjectilePassthrough}); void CPathCamera::Reset(const zeus::CTransform&, CStateManager& mgr) {