- fixed code generation issues with parameterized MBF21 functions.

This commit is contained in:
Christoph Oelckers 2021-09-19 12:59:24 +02:00
parent fb107f80e6
commit 3acc5a2723

View file

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