(svn r26313) -Codechange: use a set for finding unique town names instead of iterating all just created town names (MJP)

This commit is contained in:
rubidium
2014-02-06 21:06:59 +00:00
parent c7629735a3
commit 9f6b8aea49
4 changed files with 29 additions and 15 deletions

View File

@@ -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 */