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)
 | 
			
		||||
            if not hint.local and data not in concerns[hint.finding_player]:
 | 
			
		||||
                concerns[hint.finding_player].append(data)
 | 
			
		||||
            # remember hints in all cases
 | 
			
		||||
 | 
			
		||||
            # since hints are bidirectional, finding player and receiving player,
 | 
			
		||||
            # we can check once if hint already exists
 | 
			
		||||
            if hint not in self.hints[team, hint.finding_player]:
 | 
			
		||||
                self.hints[team, hint.finding_player].add(hint)
 | 
			
		||||
                new_hint_events.add(hint.finding_player)
 | 
			
		||||
                for player in self.slot_set(hint.receiving_player):
 | 
			
		||||
                    self.hints[team, player].add(hint)
 | 
			
		||||
                    new_hint_events.add(player)
 | 
			
		||||
            # only remember hints that were not already found at the time of creation
 | 
			
		||||
            if not hint.found:
 | 
			
		||||
                # since hints are bidirectional, finding player and receiving player,
 | 
			
		||||
                # we can check once if hint already exists
 | 
			
		||||
                if hint not in self.hints[team, hint.finding_player]:
 | 
			
		||||
                    self.hints[team, hint.finding_player].add(hint)
 | 
			
		||||
                    new_hint_events.add(hint.finding_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)))
 | 
			
		||||
        for slot in new_hint_events:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue