home · contact · privacy
Fix bug that blocked sound from reaching players.
[plomrogue2] / plomrogue / commands.py
index fc087fbe7434a4cc6966b773f123da07425909d4..a92359eac8c2fcab197ea9ea42d2cd2de72b9a40 100644 (file)
@@ -44,7 +44,8 @@ def cmd_ALL(game, msg, connection_id):
     if not speaker:
         raise GameError('need to be logged in for this')
     largest_audible_distance = 20
-    dijkstra_map = DijkstraMap(game.things, game.maps, speaker.position,
+    things = [t for t in game.things if t.type_ != 'Player']
+    dijkstra_map = DijkstraMap(things, game.maps, speaker.position,
                                largest_audible_distance, game.get_map)
     for c_id in game.sessions:
         listener = game.get_player(c_id)