mirror of https://github.com/AxioDL/metaforce.git
Removed constexpr from lambdas to fix compiler error
This commit is contained in:
parent
0cdacb1f37
commit
0e093baf67
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue