1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 23:49:09 +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

2
misc.c
View File

@@ -352,7 +352,7 @@ StringID RealAllocateName(const byte *name, byte skip, bool check_double)
if (free_item == -1)
free_item = i;
} else {
if (check_double && str_eq(names, name)) {
if (check_double && strcmp(names, name) == 0) {
_error_message = STR_0132_CHOSEN_NAME_IN_USE_ALREADY;
return 0;
}