Removed constexpr from lambdas to fix compiler error

This commit is contained in:
SirMangler 2021-01-03 19:20:48 +00:00
parent 0cdacb1f37
commit 0e093baf67
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ void CBouncyGrenade::Think(float dt, CStateManager& mgr) {
const zeus::CTransform& orientation = GetTransform().getRotation(); const zeus::CTransform& orientation = GetTransform().getRotation();
const zeus::CVector3f& translation = GetTranslation(); const zeus::CVector3f& translation = GetTranslation();
const zeus::CVector3f& scale = GetModelData()->GetScale(); 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.SetOrientation(orientation);
gen.SetGlobalTranslation(translation); gen.SetGlobalTranslation(translation);
gen.SetGlobalScale(scale); gen.SetGlobalScale(scale);

View File

@ -371,7 +371,7 @@ void CMazeState::GenerateObstacles() {
Initialize(); Initialize();
} }
auto GetRandom = [this](s32 offset) constexpr { auto GetRandom = [this](s32 offset) {
s32 tmp = x0_rand.Next(); s32 tmp = x0_rand.Next();
return tmp + ((tmp / 5) * -5) + offset; return tmp + ((tmp / 5) * -5) + offset;
}; };