home · contact · privacy
Fix faulty FOV handling of non-player Things.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 8 Dec 2020 20:56:48 +0000 (21:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 8 Dec 2020 20:56:48 +0000 (21:56 +0100)
plomrogue/game.py

index 10fcb12b19f3c7f644d11eb8376368d99c15028c..1dc1e92cd2a29a0a28a72aa22a5d4365741fa95d 100755 (executable)
@@ -328,7 +328,7 @@ class Game(GameBase):
                                           if self.sessions[c_id]['thing_id'] == t.id_]:
                         self.io.send('PLAY_ERROR ' + quote(str(e)), connection_id)
         if self.changed_fovs:
-            for t in [t for t in self.things]:
+            for t in [t for t in self.things if t.type_ == 'Player']:
                 t.invalidate_map_view()
         if self.changed:
             self.turn += 1