mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r2260) - Fix (regression): custom currency input works again ingame
This commit is contained in:
parent
ad6b37a423
commit
9b8aa4c101
@ -1414,12 +1414,12 @@ static void CustCurrencyWndProc(Window *w, WindowEvent *e)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(edittext) {
|
if (edittext) {
|
||||||
WP(w,def_d).data_2 = line;
|
WP(w,def_d).data_2 = line;
|
||||||
ShowQueryString(
|
ShowQueryString(
|
||||||
str,
|
str,
|
||||||
STR_CURRENCY_CHANGE_PARAMETER,
|
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
|
250, // characters up to this width pixels, whichever is satisfied first
|
||||||
w->window_class,
|
w->window_class,
|
||||||
w->window_number);
|
w->window_number);
|
||||||
|
Loading…
Reference in New Issue
Block a user