home · contact · privacy
Fix empty portal/annotation lists counting as None, erronously triggering thing data...
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:00:32 +0000 (22:00 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:00:32 +0000 (22:00 +0100)
plomrogue/game.py

index 35a610881bed5fea0ce7081d2b6f92bdc2774150..9a9b235cd454a13187a6058b88cdc7fe513238ec 100755 (executable)
@@ -252,9 +252,9 @@ class Game(GameBase):
                 player.prepare_multiprocessible_fov_stencil()
                 player_fovs += [player._fov]
                 player_ids_send_fov += [player.id_]
-            if not (player._seen_things
-                    and player._seen_annotation_positions
-                    and player._seen_portal_positions):
+            if None in (player._seen_things,
+                        player._seen_annotation_positions,
+                        player._seen_portal_positions):
                 player_ids_send_other += [player.id_]
         new_fovs = []
         single_core_until = 16  # since multiprocess has its own overhead