From 679c7c1932187a3ca008dad2e580e0e1080482fc Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 8 Dec 2020 21:56:48 +0100 Subject: [PATCH] Fix faulty FOV handling of non-player Things. --- plomrogue/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plomrogue/game.py b/plomrogue/game.py index 10fcb12..1dc1e92 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -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 -- 2.30.2