Skip to content

Commit

Permalink
Change: Continue into chains that store to PSA even without a callbac…
Browse files Browse the repository at this point in the history
…k result.
  • Loading branch information
PeterN committed Aug 31, 2021
1 parent 198be90 commit 8f0006c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/newgrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5039,6 +5039,9 @@ static void NewSpriteGroup(ByteReader *buf)
adjust.parameter = IsInsideMM(adjust.variable, 0x60, 0x80) ? buf->ReadByte() : 0;
}

/* DSGA_OP_STOP has side-effects so should be processed even if there is no callback result. */
if (adjust.operation == DSGA_OP_STOP) group->has_cb_result |= true;

varadjust = buf->ReadByte();
adjust.shift_num = GB(varadjust, 0, 5);
adjust.type = (DeterministicSpriteGroupAdjustType)GB(varadjust, 6, 2);
Expand Down

0 comments on commit 8f0006c

Please sign in to comment.