home · contact · privacy
Fix buggy map existence test in command_worldactive().
authorChristian Heller <c.heller@plomlompom.de>
Wed, 11 Mar 2015 13:33:33 +0000 (14:33 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 11 Mar 2015 13:33:33 +0000 (14:33 +0100)
roguelike-server

index 87a4e24267bad8afaca75e91d21cc73712b154ba..64ae1188a2265dff3f58f82b15adefb34a37982f 100755 (executable)
@@ -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])