summaryrefslogtreecommitdiff
path: root/src/town_type.h
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-29Codechange: Remove TownLayoutByte typeCharles Pigott
2019-04-29Codechange: Remove TownFoundingByte typeCharles Pigott
2019-03-04Add: Option for population-linear town cargo generationNiels Martin Hansen
Introduce a new default algorithm for town cargo generation (passengers and mail), and a game setting to choose between the new and original algorithm. The original town cargo generation algorithm has the property of the generated amount relating to the square of each building's population, meaning large towns easily produce more cargo than can realistically be transported. The problem is excessive cargo is amplified if playing with cargodist. The new algorithm introduced instead has a linear relation to the population. The result is that smaller towns will produce slightly more cargo, while the largest towns will produce about a fourth of what they would with the original algorithm. Existing savegames will use the original algorithm, while new games will default to the new algorithm.
2019-01-13Fix: Grammar in a bunch of comments (#7054)nikolas
2011-11-15(svn r23233) -Codechange: Refactor maximum and actually transported cargo ↵michi_cc
amount of towns into a reusable struct.
2011-04-17(svn r22343) -Change: Remove pixel limiter for query strings.terkhen
2011-01-14(svn r21797) -Fix/Change: unify the size (in characters) of the string ↵rubidium
inputs with eachother and TTD to prevent crashes/asserts with e.g. signs that are too long
2010-12-05(svn r21414) -Codechange: limit town name by amount of characters, not bytesrubidium
2010-05-13(svn r19812) -Codechange: give some unnamed enums a name or, in case they ↵rubidium
consisted of unrelated values use static const (u)int
2010-04-17(svn r19654) -Codechange: Use Extract<> in more places.frosch
2010-03-20(svn r19479) -Codechange: Test range of town size and layout instead of ↵alberth
against the current last value.
2010-03-20(svn r19478) -Codechange: Resolve TS_ prefix clash between TileSource and ↵alberth
TownSize enums.
2009-11-24(svn r18281) -Feature: founding towns in-game (based on work by Belugas, ↵smatz
TheJosh, GeekToo, Terkhen and others)
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-06-26(svn r16664) -Codechange: move house-related stuff from town.h and ↵smatz
town_type.h to separate files
2009-05-26(svn r16428) -Codechange: use the less bloated SimpleTinyEnumT instead of ↵rubidium
TinyEnumT if the stuff provided by TinyEnumT but not SimpleTinyEnumT is not used.
2009-05-11(svn r16277) -Codechange: enumerize values and remove unneeded values used ↵smatz
for testing town rating
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-02-05(svn r15352) -Codechange: make the arguments passed around while founding a ↵smatz
town a bit more readable
2009-02-04(svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly ↵smatz
road networks -Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore -Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-08-13(svn r14063) -Codechange: replace some "magic" constants with enumified ↵rubidium
constants.
2008-06-08(svn r13413) -Codechange: remove some enums that haven't been used for years.rubidium
2008-05-24(svn r13234) -Fix: Check/affect town rating when removing/bulldozing ↵frosch
town-owned road under drivethrough stops. -Fix: Reset the 'town-owned-road'-flag when removing and rebuilding road under drivethrough stops.
2008-04-04(svn r12560) -Cleanup: town_cmd.cpp and header files - variable scope and a ↵smatz
bit of coding style
2008-04-01(svn r12534) -Feature: Add a new type of town road layouts - random for each ↵skidd13
town
2008-01-07(svn r11776) -Codechange: more header splittings to reduce the dependencies.rubidium