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

@@ -93,6 +93,7 @@
#include "timer/timer_game_realtime.h"
#include "timer/timer_game_tick.h"
#include "network/network_sync.h"
#include "plans_func.h"
#include "linkgraph/linkgraphschedule.h"
#include "tracerestrict.h"
@@ -507,6 +508,7 @@ static void ShutdownGame()
ClearAllSignalSpeedRestrictions();
ClearZoningCaches();
InvalidatePlanCaches();
ClearOrderDestinationRefcountMap();
/* No NewGRFs were loaded when it was still bootstrapping. */