From: Christian Heller Date: Mon, 14 Dec 2020 21:00:32 +0000 (+0100) Subject: Fix empty portal/annotation lists counting as None, erronously triggering thing data... X-Git-Url: https://plomlompom.com/repos/error?a=commitdiff_plain;h=e9188b469ca75643cea9dbfd49e7400d060ca06a;p=plomrogue2 Fix empty portal/annotation lists counting as None, erronously triggering thing data send. --- diff --git a/plomrogue/game.py b/plomrogue/game.py index 35a6108..9a9b235 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -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