mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
VarAction2: Ensure that store simplification can't break var 7B
This commit is contained in:
parent
3bddd55921
commit
23e6d861fc
@ -6877,7 +6877,7 @@ static void OptimiseVarAction2DeterministicSpriteGroupSimplifyStores(Determinist
|
||||
}
|
||||
const DeterministicSpriteGroupAdjust &next = group->adjusts[j];
|
||||
if (next.operation == DSGA_OP_RST) {
|
||||
ok = true;
|
||||
ok = (next.variable != 0x7B);
|
||||
break;
|
||||
}
|
||||
if (is_constant && next.operation == DSGA_OP_STO_NC) {
|
||||
|
Loading…
Reference in New Issue
Block a user