summaryrefslogtreecommitdiff
path: root/src/townname.cpp
AgeCommit message (Collapse)Author
2021-06-03Codechange: use "[[maybe_unused]]" instead of a wide variety of other ways ↵Patric Stout
we had While at it, replace OTTD_ASSERT with WITH_ASSERT, as this is always set if assert() is valid. No matter if NDEBUG is set or not.
2021-04-01Fix #8919: Release builds with asserts enabled (#8925)Charles Pigott
2021-04-01Codechange: Suppress warnings when asserts are disabled (#8917)Patric Stout
2020-12-14Codechange: use \u to indicate unicode chars in strings (#8379)Patric Stout
With \x, we sometimes had to do the "" trick, as the length is not predefined. With C++11 bringing \u to the specs, which has a preset length, we no longer need the "" trick. We set the strings to u8, to ensure all compilers use UTF-8 encoding for the \u characters. This was triggered by newer CLangs, which start to warn if you use "" in the middle of a string, wondering if that was your intention. It is a good question. And this is our answer :)
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2019-12-21Codechange: Replace FOR_ALL_TOWNS with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-01-13Fix: Grammar in a bunch of comments (#7054)nikolas
2015-03-15(svn r27187) -Fix: Code style.frosch
2014-04-25(svn r26510) -Codechange: use memcpy instead of strncpy in the town name ↵rubidium
replace word function since we never want to add a '\0' anyway, and we know the exact length too
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-16(svn r26346) -Fix [FS#5870]: Call Layouter::ReduceLineCache from ↵frosch
GenerateTownName in all cases.
2014-02-06(svn r26313) -Codechange: use a set for finding unique town names instead of ↵rubidium
iterating all just created town names (MJP)
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-05(svn r23759) -Fix (r17612)[FS#4951]: the check for duplicate town names ↵smatz
wasn't really working
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-01(svn r23704) -Doc: Doxygen comment fixes and additions.alberth
2011-05-01(svn r22405) -Document: some more "random-ish" tidbitsrubidium
2011-03-18(svn r22258) -Codechange: introduce a wrapper class to clean up the ↵yexo
arguments to FormatString
2010-12-09(svn r21440) -Codechange: pass a pointer to just past the end of the argv ↵yexo
array around in FormatString and friends
2010-12-05(svn r21414) -Codechange: limit town name by amount of characters, not bytesrubidium
2010-11-14(svn r21192) -Fix (r15505)[FS#4226]: Use non-interactive randomness for ↵frosch
townnames on map generation, so they are controlled by the generation-seed as well.
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-22(svn r17612) -Feature: possibility to choose (randomise or enter custom) ↵smatz
town name before its creation (original patch by Terkhen)
2009-09-21(svn r17597) -Codechange: rename namegen* to townname*smatz