From 90fff7c06542e4c878d4ebc06821daa0b62012f2 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 11 Mar 2015 14:33:33 +0100
Subject: [PATCH] Fix buggy map existence test in command_worldactive().

---
 roguelike-server | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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])
-- 
2.30.2