mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use uint16 for park size
This commit is contained in:
parent
da532dd7f0
commit
9d7dc3bacc
|
@ -1650,7 +1650,7 @@ static void window_park_stats_paint()
|
|||
y = w->y + window_park_awards_widgets[WIDX_PAGE_BACKGROUND].top + 4;
|
||||
|
||||
// Draw park size
|
||||
parkSize = RCT2_GLOBAL(RCT2_ADDRESS_PARK_SIZE, sint16) * 10;
|
||||
parkSize = RCT2_GLOBAL(RCT2_ADDRESS_PARK_SIZE, uint16) * 10;
|
||||
stringIndex = STR_PARK_SIZE_METRIC_LABEL;
|
||||
if (!RCT2_GLOBAL(RCT2_ADDRESS_CONFIG_METRIC, uint8)) {
|
||||
stringIndex = STR_PARK_SIZE_IMPERIAL_LABEL;
|
||||
|
|
|
@ -144,8 +144,8 @@ int park_calculate_size()
|
|||
}
|
||||
} while (map_element_iterator_next(&it));
|
||||
|
||||
if (tiles != RCT2_GLOBAL(RCT2_ADDRESS_PARK_SIZE, sint16)) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_SIZE, sint16) = tiles;
|
||||
if (tiles != RCT2_GLOBAL(RCT2_ADDRESS_PARK_SIZE, uint16)) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_SIZE, uint16) = tiles;
|
||||
window_invalidate_by_class(WC_PARK_INFORMATION);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue