mirror of https://github.com/OpenRCT2/OpenRCT2.git
Modify storage of PeepThought items to 16 bit for rides and shop items
This commit is contained in:
parent
b97ebc745f
commit
1555a4da9f
|
@ -485,12 +485,19 @@ enum PeepRideDecision
|
||||||
PEEP_RIDE_DECISION_THINKING = 1 << 2,
|
PEEP_RIDE_DECISION_THINKING = 1 << 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static constexpr uint16_t PeepThoughtItemNone = std::numeric_limits<uint16_t>::max();
|
||||||
|
|
||||||
struct PeepThought
|
struct PeepThought
|
||||||
{
|
{
|
||||||
PeepThoughtType type; // 0
|
PeepThoughtType type;
|
||||||
uint8_t item; // 1
|
union
|
||||||
uint8_t freshness; // 2 larger is less fresh
|
{
|
||||||
uint8_t fresh_timeout; // 3 updates every tick
|
ride_id_t rideId;
|
||||||
|
ShopItem shopItem;
|
||||||
|
uint16_t item;
|
||||||
|
};
|
||||||
|
uint8_t freshness; // larger is less fresh
|
||||||
|
uint8_t fresh_timeout; // updates every tick
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Guest;
|
struct Guest;
|
||||||
|
|
Loading…
Reference in New Issue