- deconstruct A_Jump with multiple labels into A_Jump(chance, RandomPick(label1, label2, label3,...)) to remove this ugly special case from the VM calling convention.

This also adds the number of available choices to OP_IJMP.
This commit is contained in:
Christoph Oelckers 2018-11-17 12:34:20 +01:00
commit adde0510fe
4 changed files with 52 additions and 10 deletions

View file

@ -1764,6 +1764,7 @@ class FxVMFunctionCall : public FxExpression
PFunction *CallingFunction;
bool CheckAccessibility(const VersionInfo &ver);
bool UnravelVarArgAJump(FCompileContext&);
public:
FxVMFunctionCall(FxExpression *self, PFunction *func, FArgumentList &args, const FScriptPosition &pos, bool novirtual);