From 9d7dc3bacc0fc14aff07fafc0a90806e4ea30e6e Mon Sep 17 00:00:00 2001 From: rd3k Date: Sun, 31 May 2015 12:57:52 +0100 Subject: [PATCH] Use uint16 for park size --- src/windows/park.c | 2 +- src/world/park.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows/park.c b/src/windows/park.c index 97baae4c9b..d737ba5558 100644 --- a/src/windows/park.c +++ b/src/windows/park.c @@ -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; diff --git a/src/world/park.c b/src/world/park.c index 2dcdcb164a..f87e239317 100644 --- a/src/world/park.c +++ b/src/world/park.c @@ -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); }