From 3acc5a2723abfdc9a8d62ec82d742d949a06f68f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 19 Sep 2021 12:59:24 +0200 Subject: [PATCH] - fixed code generation issues with parameterized MBF21 functions. --- src/gamedata/d_dehacked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamedata/d_dehacked.cpp b/src/gamedata/d_dehacked.cpp index 6c2022cda..85c167fe0 100644 --- a/src/gamedata/d_dehacked.cpp +++ b/src/gamedata/d_dehacked.cpp @@ -969,6 +969,7 @@ static void (*MBFCodePointerFactories[])(FunctionCallEmitter&, int, int, MBFPara CreateWeaponJumpFunc, CreateWeaponJumpFunc, CreateJumpIfFlagSetFunc, + CreateFlagSetFunc, CreateFlagSetFunc }; @@ -979,7 +980,6 @@ static void SetDehParams(FState *state, int codepointer, VMDisassemblyDumper &di static const uint8_t regts[] = { REGT_POINTER, REGT_POINTER, REGT_POINTER }; int value1 = state->GetMisc1(); int value2 = state->GetMisc2(); - if (!(value1|value2)) return; bool returnsState = codepointer == 6;