From fa1ad0fd3c4bb20af746d5ee7588afcb0e5f8375 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 25 Jun 2009 15:42:03 +0000 Subject: (svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made --- src/settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index fde35834e..451c5b365 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -961,6 +961,12 @@ static bool ChangeDynamicEngines(int32 p1) return true; } +static bool StationCatchmentChanged(int32 p1) +{ + Station::RecomputeIndustriesNearForAll(); + return true; +} + #ifdef ENABLE_NETWORK static bool UpdateClientName(int32 p1) -- cgit v1.2.3-70-g09d2