2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:44:56 +00:00

Merge pull request #365 from SirMangler/lambdaconstexpr

[Windows] Remove constexpr from Lambda functions to fix compiler errors.
This commit is contained in:
2021-01-09 15:08:37 -05:00
committed by GitHub
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::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);

View File

@@ -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;
};