Skip to content

Commit

Permalink
- fixed code generation issues with parameterized MBF21 functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 19, 2021
1 parent fb107f8 commit 3acc5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gamedata/d_dehacked.cpp
Expand Up @@ -969,6 +969,7 @@ static void (*MBFCodePointerFactories[])(FunctionCallEmitter&, int, int, MBFPara
CreateWeaponJumpFunc,
CreateWeaponJumpFunc,
CreateJumpIfFlagSetFunc,
CreateFlagSetFunc,
CreateFlagSetFunc
};

Expand All @@ -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;

Expand Down

0 comments on commit 3acc5a2

Please sign in to comment.