1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #7454: Rides list windows has weird strings...

The ride list assumed the ride structure had 0 packing. Format the name by explicitly setting format arguments to the ride's name arguments.
This commit is contained in:
Ted John
2018-05-27 13:26:21 +01:00
parent 9d14e74520
commit cce37698e8

View File

@@ -603,7 +603,9 @@ static void window_ride_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi,
ride = get_ride(w->list_item_positions[i]);
// Ride name
gfx_draw_string_left_clipped(dpi, format, &ride->name, COLOUR_BLACK, 0, y - 1, 159);
set_format_arg(0, rct_string_id, ride->name);
set_format_arg(2, uint32, ride->name_arguments);
gfx_draw_string_left_clipped(dpi, format, gCommonFormatArgs, COLOUR_BLACK, 0, y - 1, 159);
// Ride information
formatSecondary = 0;