summaryrefslogtreecommitdiff
path: root/namegen.c
AgeCommit message (Collapse)Author
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-05-01(svn r4639) -Feature: Turkish town names (jnmbk)celestar
2006-03-01(svn r3707) -Fix: made the generated Finnish town names sound more Finnish (ln-)bjarni
note: <ln-> Bjarni: please go ahead and commit it, i'll take the responsibility if something should go wrong.
2005-10-23(svn r3078) Some more stuff, which piled up:tron
- const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
2005-10-03(svn r3010) Get rid of quite some dubious casts, either by using GB(), ↵tron
proper types or just removing them
2005-09-16(svn r2957) - Feature: [ 1263280 ] Danish town names (fey_dk)Darkvater
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-03-09(svn r1977) Typedef some enums and struct plus some minor style changestron
2005-03-06(svn r1951) Introduced SeedModChance() (which is like SeedChance() but uses ↵pasky
simple modulo instead of bitshifting and multiplication), explained why does it work better, used it in MakeCzechTownName() and added a TODO note about possibly using it in the other town name generators too.
2005-03-05(svn r1930) Cleaned up the postfix-ending connecting code and introduced ↵pasky
some simple postfix-last-letter transformations when the ending first letter is 'i'.
2005-03-05(svn r1929) Feature: [namegen] Support for dynamic generation of the Czech ↵pasky
town names. The static names are still used in 1/4 of cases. I think the tables for dynamic generation must look pretty spectacular. :-) New stems are still needed and there can be occasional glitches, please let me know. I guess that this method of dynamic generation could be used for at least Slovak town names, too. And possibly other Slavic languages?
2005-03-05(svn r1926) Codechange: Renamed some of the predefined town names arrays for ↵pasky
consistent naming. - name_spanish_1, name_french_1, name_czech_1, name_romanian_1, name_finnish_1 and name_german_hardcoded were renamed to *_real. - name_slovakish_1 was renamed to name_slovak_real. - name_finnish_2[ab] was renamed to name_finnish[12]. - Added comment near the town_names setting definition about the "Slovakish" pigginess.
2005-02-05(svn r1811) Use char for string handling in namegen.[ch]tron
2005-02-05(svn r1810) Move town name generation declarations into a header of their owntron
2005-02-05(svn r1803) Move debugging stuff into files of it's owntron
2005-01-23(svn r1610) Remove trailing whitespace (last time ever, i hope)tron
2005-01-23(svn r1608) Make ReplaceWords() comprehensibletron
2005-01-15(svn r1531) -Feature: [1039061] Swiss town-names (vulvulune)darkvater
2005-01-12(svn r1494) Give GetNumberBasedOnSeed() a bit more sane name: SeedChance()tron
Add SeedChanceBias() which subtracts a bias from SeedChance() to reduce code duplication While touching the lines anyway sprinkle a bit holy ANSI water (static before inline) and move assignments in the conditions of ifs before the ifs
2005-01-12(svn r1492) Reduce strcpy(, "") follwed by strcat() to just strcpy() (Jango)tron
2005-01-12(svn r1491) Fix bracing style and indentation (Jango)tron
2005-01-12(svn r1490) Restore original town name generation behavior for german and ↵tron
hungarian (Jango)
2005-01-09(svn r1451) Fix some of the signed/unsigned comparison warningstron
2005-01-09(svn r1450) Updated norwegian townname generation (Simen Graaten)miham
2005-01-09(svn r1438) Added norwegian townnamesmiham
2005-01-03(svn r1333) Fix: No crash when creating a game with American town names any moredominik
2004-12-31(svn r1307) -Fix/feature: rewrote the townname generation code. Code is much ↵truelight
more readable now. 'American' is replaces by 'Additional English' (Jango)
2004-11-15(svn r627) Merge r439 to trunk:tron
Cleaned up whitespace in namegen.c
2004-09-16(svn r270) Fix: [ 1028851 ] automatic and unwanted city renamingdominik
2004-09-13(svn r241) -Fix: Trailing spaces :Odarkvater
2004-09-13(svn r234) -Fix: added missing romanian.txt to VC6, VS.NET and Jamfile ↵darkvater
project file -Feature: Added romanian town names and currency (Magic_Pixel)
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-08-23(svn r125) Add: [ 1014684 ] Czech town names (supr)dominik
2004-08-22(svn r112) -Fix: converted all linebreaks to UNIX-linebreak (\n) (forgot one ↵truelight
file)
2004-08-22(svn r110) Added modified English town name generatororudge
2004-08-16(svn r66) -Fix Station list updated on station deletion/station renamedarkvater
-Changed debug messages to comply with DEBUG(name, level) heuristics
2004-08-10(svn r9) Fixed a couple of warnings and minor coding issuesdominik
2004-08-10(svn r5) -Fix: townname generation of TTDLX savegames. All work darkvater
except for German Townnames (also fix one typo on English town-names) -CodeChange: *act_paper to *act_water in Town to more resemble its use -Fix: AI players now retain AI status. Since TTDLX savegame status is not fully documented, some holes exist (AI state is set to one without a vehicle, otherwise it crashes)
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight