summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-05 22:50:33 +0000
committertron <tron@openttd.org>2005-02-05 22:50:33 +0000
commit12183084b75365777aecd57fe43a355f39d1200c (patch)
tree68059d4827f8ac3262d8aecaf7170b7109c27180 /misc_gui.c
parent491063c9a13274c8f05c82da5bf1d935797b3a16 (diff)
downloadopenttd-12183084b75365777aecd57fe43a355f39d1200c.tar.xz
(svn r1808) Use strcmp() instead of home brewed function str_eq()
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 8a5ef640e..6dcb30c65 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -896,7 +896,8 @@ static void QueryStringWndProc(Window *w, WindowEvent *e)
case 3: DeleteWindow(w); break;
case 4:
press_ok:;
- if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) && !_do_edit_on_text_even_when_no_change_to_edit_box) {
+ if (strcmp(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) == 0 &&
+ !_do_edit_on_text_even_when_no_change_to_edit_box) {
DeleteWindow(w);
} else {
byte *buf = WP(w,querystr_d).buf;