From c97e8d36f1cfda2338600b51a3e3b25469fff290 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 28 Jul 2021 09:54:42 +0200 Subject: [PATCH] Fix money effect --- src/openrct2/world/MoneyEffect.cpp | 4 ++-- src/openrct2/world/MoneyEffect.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2/world/MoneyEffect.cpp b/src/openrct2/world/MoneyEffect.cpp index 85e328b805..149231c19d 100644 --- a/src/openrct2/world/MoneyEffect.cpp +++ b/src/openrct2/world/MoneyEffect.cpp @@ -29,7 +29,7 @@ template<> bool SpriteBase::Is() const * * rct2: 0x0067351F */ -void MoneyEffect::CreateAt(money32 value, const CoordsXYZ& effectPos, bool vertical) +void MoneyEffect::CreateAt(money64 value, const CoordsXYZ& effectPos, bool vertical) { if (value == MONEY(0, 00)) return; @@ -63,7 +63,7 @@ void MoneyEffect::CreateAt(money32 value, const CoordsXYZ& effectPos, bool verti * * rct2: 0x0069C5D0 */ -void MoneyEffect::Create(money32 value, const CoordsXYZ& loc) +void MoneyEffect::Create(money64 value, const CoordsXYZ& loc) { auto offsetLoc = loc; if (loc.isNull()) diff --git a/src/openrct2/world/MoneyEffect.h b/src/openrct2/world/MoneyEffect.h index ba6aa34c81..bd48992c51 100644 --- a/src/openrct2/world/MoneyEffect.h +++ b/src/openrct2/world/MoneyEffect.h @@ -20,13 +20,13 @@ struct MoneyEffect : MiscEntity uint16_t MoveDelay; uint8_t NumMovements; uint8_t Vertical; - money32 Value; + money64 Value; int16_t OffsetX; uint16_t Wiggle; - static void CreateAt(money32 value, const CoordsXYZ& effectPos, bool vertical); - static void Create(money32 value, const CoordsXYZ& loc); + static void CreateAt(money64 value, const CoordsXYZ& effectPos, bool vertical); + static void Create(money64 value, const CoordsXYZ& loc); void Update(); - std::pair GetStringId() const; + std::pair GetStringId() const; void Serialise(DataSerialiser& stream); };