(svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made

This commit is contained in:
smatz
2009-06-25 15:42:03 +00:00
parent 8bc244d14e
commit fa1ad0fd3c
8 changed files with 174 additions and 9 deletions

View File

@@ -226,6 +226,8 @@ static bool InitializeWindowsAndCaches()
SetCachedEngineCounts();
Station::RecomputeIndustriesNearForAll();
/* Towns have a noise controlled number of airports system
* So each airport's noise value must be added to the town->noise_reached value
* Reset each town's noise_reached value to '0' before. */