pasky [Tue, 08 Mar 2005 00:26:30 +0000] rev 1454
(svn r1958) GenerateStationName() tidyup.
pasky [Tue, 08 Mar 2005 00:18:31 +0000] rev 1453
(svn r1957) Compilation fix.
matthijs [Mon, 07 Mar 2005 23:28:27 +0000] rev 1452
(svn r1956) -Fix: [NPF] New target tile for heuristic should perform better with larger stations (HackyKid)
pasky [Mon, 07 Mar 2005 13:20:22 +0000] rev 1451
(svn r1955) Fix: Make the town growth frequency scale properly both up and down. The scaling is now also based on the number of towns instead of the map size. (In cooperation with HackyKid.)
pasky [Mon, 07 Mar 2005 11:36:05 +0000] rev 1450
(svn r1954) Fix: The new AI now does not think it can connect to the road by building its piece of road above the end of a tunnel anymore.
pasky [Mon, 07 Mar 2005 00:39:41 +0000] rev 1449
(svn r1953) Codechange: Tidyup, reduced ridiculous indentation levels, some sprintf()s replced by snprintf()s.
pasky [Sun, 06 Mar 2005 23:46:52 +0000] rev 1448
(svn r1952) Fix: Hopefully fixed the enormous towns growth slowdown in large maps. (Inspired by toholio.)
pasky [Sun, 06 Mar 2005 23:21:57 +0000] rev 1447
(svn r1951) Introduced SeedModChance() (which is like SeedChance() but uses 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.
pasky [Sun, 06 Mar 2005 22:28:35 +0000] rev 1446
(svn r1950) Fix: A slight adjustment in the DoRandom() function which however causes dramatic improvement in the distribution of random numbers.
With the original generator, e.g. Random()%44 on 100 attempts regularily
generated only 22 different values! With this adjustment, the distribution is
much more uniform, almost approaching the glibc's random() call.
This means the random numbers are actually usable i.e. for the town names
generators which almost never tried a large part of the names while others were
very frequent.
Note that we attempted to test whether the randomness did not degrade in some
other way, and it came clean from the tests we performed. If you spot anything
fishy, try without this patch, though.
pasky [Sun, 06 Mar 2005 21:20:34 +0000] rev 1445
(svn r1949) Fixed the CzechChoose usage in the Czech word tables. Now selecting colours actually works.