1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Modify storage of PeepThought items to 16 bit for rides and shop items

This commit is contained in:
ζeh Matt
2021-08-28 00:02:09 +03:00
parent b97ebc745f
commit 1555a4da9f

View File

@@ -485,12 +485,19 @@ enum PeepRideDecision
PEEP_RIDE_DECISION_THINKING = 1 << 2,
};
static constexpr uint16_t PeepThoughtItemNone = std::numeric_limits<uint16_t>::max();
struct PeepThought
{
PeepThoughtType type; // 0
uint8_t item; // 1
uint8_t freshness; // 2 larger is less fresh
uint8_t fresh_timeout; // 3 updates every tick
PeepThoughtType type;
union
{
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;