(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the
query has no parent (eg give money, rename waypoint), the global function HandleOnEditText is used.
This commit is contained in:
@@ -266,7 +266,7 @@ static void TownViewWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
case 8: /* rename */
|
||||
SetDParam(0, w->window_number);
|
||||
ShowQueryString(STR_TOWN, STR_2007_RENAME_TOWN, 31, 130, w->window_class, w->window_number, CS_ALPHANUMERAL);
|
||||
ShowQueryString(STR_TOWN, STR_2007_RENAME_TOWN, 31, 130, w, CS_ALPHANUMERAL);
|
||||
break;
|
||||
|
||||
case 9: /* expand town */
|
||||
|
||||
Reference in New Issue
Block a user