mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 03:35:09 +01:00
* Update changelog.txt * Fix #25854: Game draws too much bar at 0 happiness and energy Fixes #25854 Originally the minimum for happiness was 10/255. It was changed to 10/100, and this PR changes it to 3/100 to get back to the old minimum. * Update changelog.txt
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
- Fix: [#25745] Crash when a player connection is aborted early.
|
||||
- Fix: [#25799] The animated options tab icon of the news window does not always redraw.
|
||||
- Fix: [#25850] Guests do not have their happiness penalised by low energy, low hunger, low thirst, high toilet. Ride nausea generation different compared to vanilla.
|
||||
- Fix: [#25854] When a guest is at 0 happiness or energy, the game draws too big of a bar in the guest stats window.
|
||||
|
||||
0.4.30 (2026-01-04)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -1118,11 +1118,11 @@ namespace OpenRCT2::Ui::Windows
|
||||
return;
|
||||
}
|
||||
|
||||
int32_t happinessPercentage = NormalizeGuestStatValue(peep->Happiness, kPeepMaxHappiness, 10);
|
||||
int32_t happinessPercentage = NormalizeGuestStatValue(peep->Happiness, kPeepMaxHappiness, 3);
|
||||
widgetProgressBarSetNewPercentage(widgets[WIDX_HAPPINESS_BAR], happinessPercentage);
|
||||
|
||||
int32_t energyPercentage = NormalizeGuestStatValue(
|
||||
peep->Energy - kPeepMinEnergy, kPeepMaxEnergy - kPeepMinEnergy, 10);
|
||||
peep->Energy - kPeepMinEnergy, kPeepMaxEnergy - kPeepMinEnergy, 3);
|
||||
widgetProgressBarSetNewPercentage(widgets[WIDX_ENERGY_BAR], energyPercentage);
|
||||
|
||||
int32_t hungerPercentage = NormalizeGuestStatValue(peep->Hunger - 32, 158, 0);
|
||||
|
||||
Reference in New Issue
Block a user