1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Merge pull request #10421 from ZehMatt/fix-10420

Fix #10420: Money effect causing false positive desync
This commit is contained in:
ζeh Matt
2019-12-22 20:55:16 +01:00
committed by GitHub
3 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
- Change: [#1164] Use available translations for shortcut key bindings.
- Fix: [#10228] Can't import RCT1 Deluxe from Steam.
- Fix: [#10325] Crash when banners have no text.
- Fix: [#10420] Money effect causing false positive desync.
0.2.4 (2019-10-28)
------------------------------------------------------------------------

View File

@@ -31,7 +31,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "5"
#define NETWORK_STREAM_VERSION "6"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;

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