MultiServer: Revert hints being created for already found locations #4367
This commit is contained in:
parent
b91a7ac6fb
commit
bedf746f1d
|
@ -743,16 +743,17 @@ class Context:
|
||||||
concerns[player].append(data)
|
concerns[player].append(data)
|
||||||
if not hint.local and data not in concerns[hint.finding_player]:
|
if not hint.local and data not in concerns[hint.finding_player]:
|
||||||
concerns[hint.finding_player].append(data)
|
concerns[hint.finding_player].append(data)
|
||||||
# remember hints in all cases
|
|
||||||
|
|
||||||
# since hints are bidirectional, finding player and receiving player,
|
# only remember hints that were not already found at the time of creation
|
||||||
# we can check once if hint already exists
|
if not hint.found:
|
||||||
if hint not in self.hints[team, hint.finding_player]:
|
# since hints are bidirectional, finding player and receiving player,
|
||||||
self.hints[team, hint.finding_player].add(hint)
|
# we can check once if hint already exists
|
||||||
new_hint_events.add(hint.finding_player)
|
if hint not in self.hints[team, hint.finding_player]:
|
||||||
for player in self.slot_set(hint.receiving_player):
|
self.hints[team, hint.finding_player].add(hint)
|
||||||
self.hints[team, player].add(hint)
|
new_hint_events.add(hint.finding_player)
|
||||||
new_hint_events.add(player)
|
for player in self.slot_set(hint.receiving_player):
|
||||||
|
self.hints[team, player].add(hint)
|
||||||
|
new_hint_events.add(player)
|
||||||
|
|
||||||
self.logger.info("Notice (Team #%d): %s" % (team + 1, format_hint(self, team, hint)))
|
self.logger.info("Notice (Team #%d): %s" % (team + 1, format_hint(self, team, hint)))
|
||||||
for slot in new_hint_events:
|
for slot in new_hint_events:
|
||||||
|
|
Loading…
Reference in New Issue