Zoning: Cache expensive zoning overlay values

This commit is contained in:
Jonathan G Rennison
2018-01-22 17:49:53 +00:00
parent f8193578c1
commit 38fb8c1b84
6 changed files with 110 additions and 14 deletions

View File

@@ -69,6 +69,7 @@
#include "viewport_func.h"
#include "thread/thread.h"
#include "bridge_signal_map.h"
#include "zoning.h"
#include "linkgraph/linkgraphschedule.h"
#include "tracerestrict.h"
@@ -348,6 +349,8 @@ static void ShutdownGame()
FreeSignalPrograms();
FreeSignalDependencies();
ClearZoningCaches();
/* No NewGRFs were loaded when it was still bootstrapping. */
if (_game_mode != GM_BOOTSTRAP) ResetNewGRFData();