Fix #10420: Money effect causing false positive desync

This commit is contained in:
Matt 2019-12-22 05:51:09 +01:00
parent 30b03d998c
commit d60cdbe5f2
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 9 additions and 0 deletions

View File

@ -260,6 +260,15 @@ rct_sprite_checksum sprite_checksum()
copy.generic.sprite_left = copy.generic.sprite_right = copy.generic.sprite_top = copy.generic.sprite_bottom = 0;
copy.generic.sprite_width = copy.generic.sprite_height_negative = copy.generic.sprite_height_positive = 0;
// Next in quadrant might be a misc sprite, set first non-misc sprite in quadrant.
while (auto* nextSprite = get_sprite(copy.generic.next_in_quadrant))
{
if (nextSprite->generic.sprite_identifier == SPRITE_IDENTIFIER_MISC)
copy.generic.next_in_quadrant = nextSprite->generic.next_in_quadrant;
else
break;
}
if (copy.generic.sprite_identifier == SPRITE_IDENTIFIER_PEEP)
{
// Name is pointer and will not be the same across clients