mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix money effect
This commit is contained in:
parent
c06d37021b
commit
c97e8d36f1
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue