1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Make frozen guests no longer finish food or drinks (#25251)

This commit is contained in:
Aaron van Geffen
2025-09-24 19:02:43 +02:00
committed by GitHub
parent a73bf7a2c7
commit f289cd3e79
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
------------------------------------------------------------------------
- Feature: [#25218] `sprite exportobject` command, which allows extracting images from an object.
- Improved: [#2296, #2307] The land tool now takes sloped track and paths into account when modifying land.
- Change: [#25111] Frozen guests no longer finish consuming any food or drink they are carrying.
- Change: [#25161] Revert to the fair ride price calculation of vanilla RCT2.
- Change: [#25228] [Plugin] The available staff costumes array is now ordered alphabetically by name.
- Removed: [#25225] `sprite exportalldat`, replaced with `sprite exportobject`.

View File

@@ -924,7 +924,8 @@ void Guest::UpdateConsumptionMotives()
void Guest::Tick128UpdateGuest(uint32_t index)
{
const auto currentTicks = getGameState().currentTicks;
if ((index & 0x1FF) != (currentTicks & 0x1FF))
const bool ticksMatchIndex = (index & 0x1FF) != (currentTicks & 0x1FF);
if (ticksMatchIndex && !(PeepFlags & PEEP_FLAGS_POSITION_FROZEN))
{
UpdateConsumptionMotives();
return;