From 0e093baf67ef3872e8dd6aba6e60178664fe731b Mon Sep 17 00:00:00 2001 From: SirMangler Date: Sun, 3 Jan 2021 19:20:48 +0000 Subject: [PATCH] Removed constexpr from lambdas to fix compiler error --- Runtime/MP1/World/CBouncyGrenade.cpp | 2 +- Runtime/World/CScriptMazeNode.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CBouncyGrenade.cpp b/Runtime/MP1/World/CBouncyGrenade.cpp index 5ec8afe4f..4ebf026d7 100644 --- a/Runtime/MP1/World/CBouncyGrenade.cpp +++ b/Runtime/MP1/World/CBouncyGrenade.cpp @@ -115,7 +115,7 @@ void CBouncyGrenade::Think(float dt, CStateManager& mgr) { const zeus::CTransform& orientation = GetTransform().getRotation(); const zeus::CVector3f& translation = GetTranslation(); const zeus::CVector3f& scale = GetModelData()->GetScale(); - auto UpdateElementGen = [ orientation, translation, scale, dt ](CElementGen & gen) constexpr { + auto UpdateElementGen = [ orientation, translation, scale, dt ](CElementGen & gen) { gen.SetOrientation(orientation); gen.SetGlobalTranslation(translation); gen.SetGlobalScale(scale); diff --git a/Runtime/World/CScriptMazeNode.cpp b/Runtime/World/CScriptMazeNode.cpp index 1539ce057..a3145cad9 100644 --- a/Runtime/World/CScriptMazeNode.cpp +++ b/Runtime/World/CScriptMazeNode.cpp @@ -371,7 +371,7 @@ void CMazeState::GenerateObstacles() { Initialize(); } - auto GetRandom = [this](s32 offset) constexpr { + auto GetRandom = [this](s32 offset) { s32 tmp = x0_rand.Next(); return tmp + ((tmp / 5) * -5) + offset; };