summaryrefslogtreecommitdiff
path: root/src/namegen.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
commitb25a4f8231f3ded44038ea454a3d4c6a2dc9217d (patch)
tree776122508c686680b9c97f37ba3cb92ef905d67f /src/namegen.cpp
parentd72273d1f3b55df0e301408d630f24ef92ea8479 (diff)
downloadopenttd-b25a4f8231f3ded44038ea454a3d4c6a2dc9217d.tar.xz
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
Diffstat (limited to 'src/namegen.cpp')
-rw-r--r--src/namegen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namegen.cpp b/src/namegen.cpp
index 6ed465644..db213ad17 100644
--- a/src/namegen.cpp
+++ b/src/namegen.cpp
@@ -22,8 +22,8 @@ static inline uint32 SeedModChance(int shift_by, int max, uint32 seed)
* SeedChance() and SeedModChance(). Do not get dicouraged by the
* never-use-modulo myths, which hold true only for the linear
* congruential generators (and Random() isn't such a generator).
- * --pasky */
- // TODO: Perhaps we should use it for all the name generators? --pasky
+ * --pasky
+ * TODO: Perhaps we should use it for all the name generators? --pasky */
return (seed >> shift_by) % max;
}
@@ -361,8 +361,8 @@ static byte MakePolishTownName(char *buf, uint32 seed, const char *last)
static byte MakeCzechTownName(char *buf, uint32 seed, const char *last)
{
- /* Probability of prefixes/suffixes */
- /* 0..11 prefix, 12..13 prefix+suffix, 14..17 suffix, 18..31 nothing */
+ /* Probability of prefixes/suffixes
+ * 0..11 prefix, 12..13 prefix+suffix, 14..17 suffix, 18..31 nothing */
int prob_tails;
bool do_prefix, do_suffix, dynamic_subst;
/* IDs of the respective parts */