summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-30 01:17:53 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-30 01:17:53 +0000
commit990270fda928f7ce9e0638189b8fc65683583e71 (patch)
tree4ef6719359384448b5674c8f954ba1a88987d16d /industry_gui.c
parentfaea6549ce13b05ab565162a9d9e0fcf0818f6dc (diff)
downloadopenttd-990270fda928f7ce9e0638189b8fc65683583e71.tar.xz
(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.
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/industry_gui.c b/industry_gui.c
index fa6d13198..3e481ef88 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -380,10 +380,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
// clicked the text
WP(w,vp2_d).data_1 = line;
SetDParam(0, i->production_rate[line] * 8);
- ShowQueryString(STR_CONFIG_PATCHES_INT32,
- STR_CONFIG_GAME_PRODUCTION,
- 10, 100, w->window_class,
- w->window_number, CS_ALPHANUMERAL);
+ ShowQueryString(STR_CONFIG_PATCHES_INT32, STR_CONFIG_GAME_PRODUCTION, 10, 100, w, CS_ALPHANUMERAL);
}
}
} break;