From d305925cdeba9781ce8ca2b89de1ba60aac46cc9 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 4 Apr 2017 20:05:10 +0100 Subject: [PATCH] Fix #5334. Make signs save text in the correct order. Mistake made during refactoring that would cause the sign text to be in the wrong order. If the text was less than 12 characters sign would be blank. --- src/openrct2/network/network.h | 2 +- src/openrct2/world/banner.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 14d0fb4357..5395fabd16 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -55,7 +55,7 @@ extern "C" { // This define 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 "13" +#define NETWORK_STREAM_VERSION "14" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/world/banner.cpp b/src/openrct2/world/banner.cpp index acb576f075..791dff48d6 100644 --- a/src/openrct2/world/banner.cpp +++ b/src/openrct2/world/banner.cpp @@ -297,7 +297,7 @@ static money32 BannerSetName(uint8 bannerIndex, rct_banner* banner = &gBanners[bannerIndex]; gCommandExpenditureType = RCT_EXPENDITURE_TYPE_RIDE_RUNNING_COSTS; - size_t indexToOffset[3] = { 24, 12, 0 }; + size_t indexToOffset[3] = { 24, 0, 12 }; if (nameChunkIndex > Util::CountOf(indexToOffset)) {