From fc71361a9e3ecc48466cee325e8b7650cadb1871 Mon Sep 17 00:00:00 2001 From: spacek531 Date: Thu, 6 Jul 2017 12:59:06 -0700 Subject: [PATCH] increase digits for wait, decrease digits for rotate, zoom --- src/openrct2/windows/title_command_editor.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/openrct2/windows/title_command_editor.c b/src/openrct2/windows/title_command_editor.c index 99f0b7bb04..1765527af1 100644 --- a/src/openrct2/windows/title_command_editor.c +++ b/src/openrct2/windows/title_command_editor.c @@ -256,7 +256,13 @@ static void window_title_command_editor_mouseup(rct_window *w, rct_widgetindex w window_close(w); break; case WIDX_TEXTBOX_FULL: - window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 4); + if (command.Type == TITLE_SCRIPT_WAIT) { + window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 5); + } + else { + // Currently the only other commands that use this textbox are Rotate and Zoom which have a maximum of 3. + window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 2); + } break; case WIDX_TEXTBOX_X: window_start_textbox(w, widgetIndex, STR_STRING, textbox1Buffer, 4); @@ -447,7 +453,8 @@ static void window_title_command_editor_textinput(rct_window * w, rct_widgetinde if (value > 3) value = 3; } else if (command.Type == TITLE_SCRIPT_WAIT) { - if (value < 1) value = 100; + if (value < 100) value = 100; + if (value > 65000) value = 65000; } command.Rotations = (uint8)value; }