VarAction2: Detect equality comparisons

Remove redundant equality with 0 comparison before ternary
This commit is contained in:
Jonathan G Rennison
2022-05-25 02:23:25 +01:00
parent 7283825638
commit 012d73ef34
3 changed files with 31 additions and 1 deletions

View File

@@ -163,6 +163,7 @@ enum DeterministicSpriteGroupAdjustOperation {
DSGA_OP_END,
DSGA_OP_TERNARY = 0x80, ///< a == 0 ? b : c,
DSGA_OP_EQ, ///< a == b ? 1 : 0,
DSGA_OP_SPECIAL_END,
};