diff options
author | belugas <belugas@openttd.org> | 2008-05-24 02:54:47 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-05-24 02:54:47 +0000 |
commit | fc35ad9ee9077869ab7b5a06b44327c835df3e5f (patch) | |
tree | 6e9667beb04ac4a18b43294a74456ab52a123a5a /src/town_cmd.cpp | |
parent | 6f233b1f8f18beb1e347c943685f6086d886993e (diff) | |
download | openttd-fc35ad9ee9077869ab7b5a06b44327c835df3e5f.tar.xz |
(svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
Initial concept : TTDPatch (moreairpots), Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index efe12043e..e0033155f 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1490,6 +1490,8 @@ static void DoCreateTown(Town *t, TileIndex tile, uint32 townnameparts, TownSize break; } + t->noise_reached = 0; + t->num_houses += x; UpdateTownRadius(t); @@ -1578,7 +1580,7 @@ Town *CreateRandomTown(uint attempts, TownSizeMode mode, uint size) return NULL; } -static const byte _num_initial_towns[4] = {5, 11, 23, 46}; +static const byte _num_initial_towns[4] = {5, 11, 23, 46}; // very low, low, normal, high bool GenerateTowns() { |