Use COMMA32 instead of UINT16 for future-proofing; amend changelog.

This commit is contained in:
Aaron van Geffen 2020-03-11 19:25:32 +01:00
parent 64e2edd285
commit dfe1c8dea8
3 changed files with 8 additions and 7 deletions

View File

@ -3673,7 +3673,7 @@ STR_6356 :{SMALLFONT}{BLACK}Spawns ducks if park contains water
STR_6357 :{SMALLFONT}{BLACK}Removes all ducks from the map
STR_6358 :Page {UINT16}
STR_6359 :{POP16}{POP16}Page {UINT16}
STR_6360 :{SMALLFONT}{BLACK}{UINT16}
STR_6360 :{SMALLFONT}{BLACK}{COMMA32}
#############
# Scenarios #

View File

@ -36,6 +36,7 @@
- Fix: [#10904] RCT1/LL-scenarios with red water won't open.
- Improved: [#682] The staff patrol area is now drawn on the water, instead of on the surface under water.
- Improved: [#10858] Added horizontal grid lines to finance charts.
- Improved: [#10884] Added y-axes and labels to park window charts.
- Removed: [#6898] LOADMM and LOADRCT1 title sequence commands (use LOADSC instead).
0.2.4 (2019-10-28)

View File

@ -1056,13 +1056,13 @@ static void window_park_rating_paint(rct_window* w, rct_drawpixelinfo* dpi)
INSET_RECT_F_30);
// Y axis labels
x = x + widget->left + 23;
x = x + widget->left + 27;
y = y + widget->top + 23;
for (int i = 5; i >= 0; i--)
{
uint16_t axisValue = i * 200;
uint32_t axisValue = i * 200;
gfx_draw_string_right(dpi, STR_GRAPH_AXIS_LABEL, &axisValue, COLOUR_BLACK, x + 10, y);
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 28, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 32, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
y += 20;
}
@ -1187,13 +1187,13 @@ static void window_park_guests_paint(rct_window* w, rct_drawpixelinfo* dpi)
INSET_RECT_F_30);
// Y axis labels
x = x + widget->left + 23;
x = x + widget->left + 27;
y = y + widget->top + 23;
for (int i = 5; i >= 0; i--)
{
uint16_t axisValue = i * 1000;
uint32_t axisValue = i * 1000;
gfx_draw_string_right(dpi, STR_GRAPH_AXIS_LABEL, &axisValue, COLOUR_BLACK, x + 10, y);
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 28, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
gfx_fill_rect_inset(dpi, x + 15, y + 5, x + w->width - 32, y + 5, w->colours[2], INSET_RECT_FLAG_BORDER_INSET);
y += 20;
}