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

@@ -58,6 +58,7 @@
#include "pathfinder/yapf/yapf_cache.h"
#include "debug_desync.h"
#include "event_logs.h"
#include "plans_func.h"
#include "table/strings.h"
#include "table/pricebase.h"
@@ -669,6 +670,8 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
extern void MarkAllViewportMapLandscapesDirty();
MarkAllViewportMapLandscapesDirty();
InvalidatePlanCaches();
}
/**