Skip to content

Commit

Permalink
Fix OpenTTD#10059: [Script] Let custom values on a config item be up …
Browse files Browse the repository at this point in the history
…to 12 digits, including '-' for negative numbers
  • Loading branch information
SamuXarick committed Feb 8, 2023
1 parent 692b6e2 commit ea87ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/game_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ struct GSConfigWindow : public Window {
} else if (!bool_item && !config_item.complete_labels) {
/* Display a query box so users can enter a custom value. */
SetDParam(0, old_val);
ShowQueryString(STR_JUST_INT, STR_CONFIG_SETTING_QUERY_CAPTION, 10, this, CS_NUMERAL, QSF_NONE);
ShowQueryString(STR_JUST_INT, STR_CONFIG_SETTING_QUERY_CAPTION, 12, this, CS_NUMERAL_SIGNED, QSF_NONE);
}
this->SetDirty();
break;
Expand Down
2 changes: 1 addition & 1 deletion src/script/script_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ struct ScriptSettingsWindow : public Window {
} else if (!bool_item && !config_item.complete_labels) {
/* Display a query box so users can enter a custom value. */
SetDParam(0, old_val);
ShowQueryString(STR_JUST_INT, STR_CONFIG_SETTING_QUERY_CAPTION, 10, this, CS_NUMERAL, QSF_NONE);
ShowQueryString(STR_JUST_INT, STR_CONFIG_SETTING_QUERY_CAPTION, 12, this, CS_NUMERAL_SIGNED, QSF_NONE);
}
this->SetDirty();
break;
Expand Down

0 comments on commit ea87ade

Please sign in to comment.