Skip to content

Commit

Permalink
Fix #806: Modifying an object with a Fixme icon triggers display of q…
Browse files Browse the repository at this point in the history
…uests, even when quests are disabled
  • Loading branch information
bryceco committed Sep 26, 2024
1 parent dd6444f commit 8b04f3c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/Shared/MapMarkers/MapMarkerDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,21 @@ final class MapMarkerDatabase: MapMarkerIgnoreListProtocol {
}
// Build a new list of markers that reference the object
var list = [MapMarker]()
for quest in QuestList.shared.questsForObject(object) {
if let marker = QuestMarker(object: object, quest: quest, ignorable: self) {
if AppDelegate.shared.mapView.viewOverlayMask.contains(.QUESTS) {
for quest in QuestList.shared.questsForObject(object) {
if let marker = QuestMarker(object: object, quest: quest, ignorable: self) {
addOrUpdate(marker: marker)
list.append(marker)
}
}
}
if AppDelegate.shared.mapView.viewOverlayMask.contains(.NOTES) {
if let fixme = FixmeMarker.fixmeTag(object) {
let marker = FixmeMarker(object: object, text: fixme)
addOrUpdate(marker: marker)
list.append(marker)
}
}
if let fixme = FixmeMarker.fixmeTag(object) {
let marker = FixmeMarker(object: object, text: fixme)
addOrUpdate(marker: marker)
list.append(marker)
}
return list
}

Expand Down

0 comments on commit 8b04f3c

Please sign in to comment.