You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/saveload
Niels Martin Hansen 52572cafa6 Add: Option for population-linear town cargo generation
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.
6 years ago
..
afterload.cpp Add: Option for population-linear town cargo generation 6 years ago
ai_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
airport_sl.cpp
animated_tile_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
autoreplace_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
cargomonitor_sl.cpp Fix #6803: CargoMonitorID bit packing updated to handle 64 cargo types. 6 years ago
cargopacket_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
cheat_sl.cpp
company_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
depot_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
economy_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
engine_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
game_sl.cpp
gamelog_sl.cpp Codechange: Separate gamelog revision length from network revision length 6 years ago
goal_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
group_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
industry_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
labelmaps_sl.cpp
linkgraph_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
map_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
misc_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
newgrf_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
newgrf_sl.h
object_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
oldloader.cpp
oldloader.h
oldloader_sl.cpp
order_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
saveload.cpp Change: Use SlErrorCorrupt() on pool index error when loading a savegame, instead of terminating. (#7219) 6 years ago
saveload.h Add: Option for population-linear town cargo generation 6 years ago
saveload_filter.h
saveload_internal.h
signs_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
station_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
storage_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
story_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
strings_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
subsidy_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago
town_sl.cpp Codechange: Change from numeric to descriptive SLV enum labels for last entries. 6 years ago
vehicle_sl.cpp Fix #7119: When rotating a ship, apply an additional offset to avoid movement glitch. 6 years ago
waypoint_sl.cpp Codechange: Convert saveload numbers to enum values. 6 years ago