From c302bec47ab2c9ac1a620a7edc16e3b0a471d7aa Mon Sep 17 00:00:00 2001 From: spacek531 Date: Thu, 6 Jul 2017 12:59:59 -0700 Subject: [PATCH] fix rotate being able to be set to 0 --- src/openrct2/windows/title_command_editor.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openrct2/windows/title_command_editor.c b/src/openrct2/windows/title_command_editor.c index 1765527af1..05ba40daec 100644 --- a/src/openrct2/windows/title_command_editor.c +++ b/src/openrct2/windows/title_command_editor.c @@ -449,7 +449,11 @@ static void window_title_command_editor_textinput(rct_window * w, rct_widgetinde case WIDX_TEXTBOX_FULL: if (text == NULL) { if (*end == '\0') { - if (command.Type == TITLE_SCRIPT_ROTATE || command.Type == TITLE_SCRIPT_ZOOM) { + if (command.Type == TITLE_SCRIPT_ROTATE) { + if (value > 3) value = 3; + } + else if (command.Type == TITLE_SCRIPT_ZOOM) { + if (value < 1) value = 1; if (value > 3) value = 3; } else if (command.Type == TITLE_SCRIPT_WAIT) {