diff options
author | rubidium <rubidium@openttd.org> | 2014-02-06 21:06:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-02-06 21:06:59 +0000 |
commit | 9f6b8aea49cbafe9d19611dc31c64a92b171d14b (patch) | |
tree | cc2980aec66915ac23080b5c13cbf502efa5f8a0 /src/townname_func.h | |
parent | c7629735a3393730d12fba678839baeec31ee72d (diff) | |
download | openttd-9f6b8aea49cbafe9d19611dc31c64a92b171d14b.tar.xz |
(svn r26313) -Codechange: use a set for finding unique town names instead of iterating all just created town names (MJP)
Diffstat (limited to 'src/townname_func.h')
-rw-r--r-- | src/townname_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/townname_func.h b/src/townname_func.h index 092556978..409993e42 100644 --- a/src/townname_func.h +++ b/src/townname_func.h @@ -17,7 +17,7 @@ char *GenerateTownNameString(char *buf, const char *last, size_t lang, uint32 seed); char *GetTownName(char *buff, const TownNameParams *par, uint32 townnameparts, const char *last); char *GetTownName(char *buff, const Town *t, const char *last); -bool VerifyTownName(uint32 r, const TownNameParams *par); -bool GenerateTownName(uint32 *townnameparts); +bool VerifyTownName(uint32 r, const TownNameParams *par, TownNames *town_names = NULL); +bool GenerateTownName(uint32 *townnameparts, TownNames *town_names = NULL); #endif /* TOWNNAME_FUNC_H */ |