1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Fix #8055: Ignore rendering specific fields for sprite checksum. (#8895)

This commit is contained in:
ζeh Matt
2019-03-16 13:53:26 -07:00
committed by Hielke Morsink
parent eaf75c7448
commit 3b69c1c75e
2 changed files with 4 additions and 1 deletions

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 "2"
#define NETWORK_STREAM_VERSION "3"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;

View File

@@ -251,7 +251,10 @@ rct_sprite_checksum sprite_checksum()
&& sprite->generic.sprite_identifier != SPRITE_IDENTIFIER_MISC)
{
auto copy = *sprite;
// Only required for rendering/invalidation, has no meaning to the game state.
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;
if (copy.generic.sprite_identifier == SPRITE_IDENTIFIER_PEEP)
{