diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-27 20:53:25 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-27 20:53:25 +0000 |
commit | c692d897cd1bdeb8d4e00349519a460fcdd2c262 (patch) | |
tree | e2ac06c3a62de5b5f8411541f83536ef20f32ee0 /src/functions.h | |
parent | de357c74c1ac4df582f32849bfbc5681c3552171 (diff) | |
download | openttd-c692d897cd1bdeb8d4e00349519a460fcdd2c262.tar.xz |
(svn r10364) -Fix [FS#706]: checking for duplicate custom names was inconsistent, and tested all 'namespaces'. now only check names of the same type.
Diffstat (limited to 'src/functions.h')
-rw-r--r-- | src/functions.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/functions.h b/src/functions.h index de5faec9c..15bc4779a 100644 --- a/src/functions.h +++ b/src/functions.h @@ -98,9 +98,6 @@ bool IsCustomName(StringID id); void DeleteName(StringID id); char *GetName(char *buff, StringID id, const char* last); -/* AllocateNameUnique also tests if the name used is not used anywere else - * and if it is used, it returns an error. */ -#define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true) #define AllocateName(name, skip) RealAllocateName(name, skip, false) StringID RealAllocateName(const char *name, byte skip, bool check_double); void ConvertNameArray(); |