From: Christian Heller Date: Tue, 8 Dec 2020 20:56:48 +0000 (+0100) Subject: Fix faulty FOV handling of non-player Things. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7B%20deck_id%20%7D%7D/templates?a=commitdiff_plain;h=679c7c1932187a3ca008dad2e580e0e1080482fc;p=plomrogue2 Fix faulty FOV handling of non-player Things. --- 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