1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

fix rotate being able to be set to 0

This commit is contained in:
spacek531
2017-07-06 12:59:59 -07:00
committed by Ted John
parent fc71361a9e
commit c302bec47a

View File

@@ -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) {