From: Christian Heller Date: Wed, 11 Mar 2015 13:33:33 +0000 (+0100) Subject: Fix buggy map existence test in command_worldactive(). X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdb.prefix%7D%7D/static/blog?a=commitdiff_plain;h=90fff7c06542e4c878d4ebc06821daa0b62012f2;p=plomrogue Fix buggy map existence test in command_worldactive(). --- diff --git a/roguelike-server b/roguelike-server index 87a4e24..64ae118 100755 --- a/roguelike-server +++ b/roguelike-server @@ -1367,7 +1367,7 @@ def command_worldactive(worldactive_string): if 0 == Thing: player_exists = True break - if wait_exists and player_exists and world_db["MAP"]: + if wait_exists and player_exists and "MAP" in world_db: for id in world_db["Things"]: if world_db["Things"][id]["T_LIFEPOINTS"]: build_fov_map(world_db["Things"][id])