summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-03 15:20:08 +0000
committerDarkvater <darkvater@openttd.org>2005-05-03 15:20:08 +0000
commit9b8aa4c10114f851815b703083ff9dc2d27f3675 (patch)
treeba098ba5e74bccd71e929d0767ca69469b2f01f2
parentad6b37a423945c4eac7292e57b9289d3200b6633 (diff)
downloadopenttd-9b8aa4c10114f851815b703083ff9dc2d27f3675.tar.xz
(svn r2260) - Fix (regression): custom currency input works again ingame
-rw-r--r--settings_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c
index 53c4ba585..408c3cc80 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -1414,12 +1414,12 @@ static void CustCurrencyWndProc(Window *w, WindowEvent *e)
break;
}
- if(edittext) {
+ if (edittext) {
WP(w,def_d).data_2 = line;
ShowQueryString(
str,
STR_CURRENCY_CHANGE_PARAMETER,
- len, // maximum number of characters OR
+ len + 1, // maximum number of characters OR
250, // characters up to this width pixels, whichever is satisfied first
w->window_class,
w->window_number);