v1.0.0.3: Fix marker cache refresh after quest turn-in; invalidate temp cache so old markers don't persist

Made-with: Cursor
This commit is contained in:
2026-02-26 21:52:45 -05:00
parent 31ab36d645
commit 2c54907cd5
4 changed files with 17 additions and 5 deletions
@@ -369,6 +369,9 @@ public partial class MapRenderer
/// <summary>Cached quest/objective (temp) markers per map; populated during silent refresh on quest accept/turn-in/objective update.</summary>
private static readonly Dictionary<uint, List<CachedTempMarker>> TempMarkerCache = new();
/// <summary>Clear the temp marker cache for a map so stale markers (e.g. from a turned-in quest) are not drawn until we refresh.</summary>
public static void InvalidateTempMarkerCache(uint mapId) => TempMarkerCache.Remove(mapId);
/// <summary>Cached non-FATE event markers per map; populated during silent refresh.</summary>
private static readonly Dictionary<uint, List<CachedEventMarker>> EventMarkerCache = new();