Plans: Cache whether any plans are currently visible

This commit is contained in:
Jonathan G Rennison
2024-01-17 19:03:10 +00:00
parent 1159224d6f
commit 3d87cfeca5
9 changed files with 65 additions and 5 deletions

View File

@@ -41,6 +41,7 @@
#include "tbtr_template_vehicle_func.h"
#include "event_logs.h"
#include "string_func.h"
#include "plans_func.h"
#include "3rdparty/monocypher/monocypher.h"
#include "safeguards.h"
@@ -176,6 +177,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
ClearAllSignalSpeedRestrictions();
ClearZoningCaches();
InvalidatePlanCaches();
IntialiseOrderDestinationRefcountMap();
ResetPersistentNewGRFData();