Fix money effect

This commit is contained in:
Gymnasiast 2021-07-28 09:54:42 +02:00
parent c06d37021b
commit c97e8d36f1
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
2 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ template<> bool SpriteBase::Is<MoneyEffect>() 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())

View File

@ -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<rct_string_id, money32> GetStringId() const;
std::pair<rct_string_id, money64> GetStringId() const;
void Serialise(DataSerialiser& stream);
};