1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 06:59:10 +00:00

(svn r1808) Use strcmp() instead of home brewed function str_eq()

This commit is contained in:
tron
2005-02-05 22:50:33 +00:00
parent 4d62bbf857
commit 7aae12d55d
6 changed files with 6 additions and 15 deletions

View File

@@ -1368,7 +1368,7 @@ static void ChatWindowWndProc(Window *w, WindowEvent *e)
case 3: DeleteWindow(w); break; // Cancel
case 2: // Send
press_ok:;
if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN)) {
if (strcmp(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) == 0) {
DeleteWindow(w);
} else {
byte *buf = WP(w,querystr_d).buf;