home · contact · privacy
Fix bug that blocked sound from reaching players.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 1 Dec 2020 03:20:37 +0000 (04:20 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 1 Dec 2020 03:20:37 +0000 (04:20 +0100)
plomrogue/commands.py
plomrogue/mapping.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)
index b4fadd7d30f1150b717d1ef9f5116ad21d668aed..6708b1bb34eadaa7f92f12fbbe25bf243a22d72a 100644 (file)
@@ -278,7 +278,7 @@ class DijkstraMap(SourcedMap):
         # for n in self.terrain:
         #     line_to_print += ['%3s' % n]
         #     x += 1
-        #     if x >= self.size.x:
+        #     if x >= self.geometry.size.x:
         #         x = 0
         #         print(' '.join(line_to_print))
         #         line_to_print = []