VarAction2: Fix callback result detection in AnalyseEngineCallbacks

This commit is contained in:
Jonathan G Rennison
2022-05-31 17:41:35 +01:00
parent e0581db2a1
commit 304f88dc40
3 changed files with 35 additions and 20 deletions

View File

@@ -57,11 +57,20 @@ enum AnalyseCallbackOperationMode {
};
struct AnalyseCallbackOperation {
struct FindCBResultData {
uint16 callback;
bool check_var_10;
uint8 var_10_value;
};
btree::btree_set<const SpriteGroup *> seen;
AnalyseCallbackOperationMode mode = ACOM_CB_VAR;
SpriteGroupCallbacksUsed callbacks_used = SGCU_NONE;
uint64 properties_used = 0;
bool cb_result_found = false;
union {
FindCBResultData cb_result;
} data;
};
/* SPRITE_WIDTH is 24. ECS has roughly 30 sprite groups per real sprite.