From 9504f3f10da3ef9fadd8fe92a036148b8144e7c4 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 26 Oct 2015 13:53:26 +0100 Subject: [PATCH] Replace missed occurrence of magic numbers with defines --- src/windows/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/map.c b/src/windows/map.c index 8376340cf7..e69939c38d 100644 --- a/src/windows/map.c +++ b/src/windows/map.c @@ -942,8 +942,8 @@ static void window_map_inputsize_land(rct_window *w) static void window_map_inputsize_map(rct_window *w) { - ((uint16*)TextInputDescriptionArgs)[0] = 13; - ((uint16*)TextInputDescriptionArgs)[1] = 254; + ((uint16*)TextInputDescriptionArgs)[0] = MINIMUM_MAP_SIZE_PRACTICAL; + ((uint16*)TextInputDescriptionArgs)[1] = MAXIMUM_MAP_SIZE_PRACTICAL; window_text_input_open(w, WIDX_MAP_SIZE_SPINNER, 5130, 5131, STR_NONE, STR_NONE, 4); }