1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix #13427: Newly created Go-Karts show "Race won by <blank>" (#13457)

* Fix #13427. Show # of people for newly created Go-Karts

* Add changelog entry

* Reorder changelog entry
This commit is contained in:
ffrogman
2020-11-26 13:04:35 -05:00
committed by GitHub
parent 077b34d05d
commit 1f0764be28
2 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
- Fix: [#13257] Rides that are exactly the minimum objective length are not counted.
- Fix: [#13334] Uninitialised variables in CustomTabDesc.
- Fix: [#13342] Rename tabChange to onTabChange in WindowDesc interface.
- Fix: [#13427] Newly created Go-Karts show "Race won by <blank>".
- Fix: [#13454] Plug-ins do not load on Windows if the user directory contains non-ASCII characters.
- Improved: [#12917] Changed peep movement so that they stay more spread out over the full width of single tile paths.
- Removed: [#13423] Built-in explode guests cheat (replaced by plug-in).

View File

@@ -839,7 +839,9 @@ void Ride::FormatStatusTo(Formatter& ft) const
{
ft.Add<rct_string_id>(STR_TEST_RUN);
}
else if (mode == RideMode::Race && !(lifecycle_flags & RIDE_LIFECYCLE_PASS_STATION_NO_STOPPING))
else if (
mode == RideMode::Race && !(lifecycle_flags & RIDE_LIFECYCLE_PASS_STATION_NO_STOPPING)
&& race_winner != SPRITE_INDEX_NULL)
{
auto peep = GetEntity<Peep>(race_winner);
if (peep != nullptr)