Fix #7021: Extra rating factors overflow the vehicle tab in Korean (#7073)

This commit is contained in:
pss9205 2018-01-24 00:06:37 +09:00 committed by Aaron van Geffen
parent 498e68f550
commit 6b716dc157
2 changed files with 13 additions and 6 deletions

View File

@ -102,6 +102,7 @@ The following people are not part of the project team, but have been contributin
* Robert Lewicki (rlewicki)
* Tyler Ruckinger (TyPR124)
* Justin Gottula (jgottula)
* Seongsik Park (pss9205)
## Toolchain
* (Balletie) - macOS

View File

@ -2915,17 +2915,16 @@ static void window_ride_vehicle_paint(rct_window *w, rct_drawpixelinfo *dpi)
// Description
y += gfx_draw_string_left_wrapped(dpi, &rideEntry->naming.description, x, y, 300, STR_BLACK_STRING, COLOUR_BLACK);
y += 5;
y += 2;
// Capacity
gfx_draw_string_left(dpi, STR_CAPACITY, &rideEntry->capacity, COLOUR_BLACK, x, y);
y += 5;
// Excitement Factor
factor = rideEntry->excitement_multiplier;
if (factor > 0)
{
y += 10;
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(dpi, STR_EXCITEMENT_FACTOR, &factor, COLOUR_BLACK, x, y);
}
@ -2933,18 +2932,25 @@ static void window_ride_vehicle_paint(rct_window *w, rct_drawpixelinfo *dpi)
factor = rideEntry->intensity_multiplier;
if (factor > 0)
{
y += 10;
sint32 lineHeight = font_get_line_height(FONT_SPRITE_BASE_MEDIUM);
if (lineHeight != 10)
x += 150;
else
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(dpi, STR_INTENSITY_FACTOR, &factor, COLOUR_BLACK, x, y);
if (lineHeight != 10)
x -= 150;
}
// Nausea Factor
factor = rideEntry->nausea_multiplier;
if (factor > 0)
{
y += 10;
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(dpi, STR_NAUSEA_FACTOR, &factor, COLOUR_BLACK, x, y);
}
}
typedef struct rct_vehichle_paintinfo {