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
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 11 additions and 4 deletions

View File

@ -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;