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

@@ -33,6 +33,7 @@
#include "viewport_func.h"
#include "bridge_signal_map.h"
#include "command_func.h"
#include "zoning.h"
#include "safeguards.h"
@@ -90,6 +91,8 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
FreeSignalPrograms();
FreeSignalDependencies();
ClearZoningCaches();
ResetPersistentNewGRFData();
InitializeSound();