home · contact · privacy
Improve input validation in command_worldactive().
[plomrogue] / roguelike-server
index 9361fb8bc8eed940d896ea86977cac3bc31b1162..0b9af475806fee19e756484cbc064b3bd29ce500 100755 (executable)
@@ -1290,7 +1290,7 @@ def command_worldactive(worldactive_string):
     map. On activation, rebuild all Things' FOVs, and the player's map memory.
     """
     val = integer_test(worldactive_string, 0, 1)
-    if val:
+    if None != val:
         if 0 != world_db["WORLD_ACTIVE"]:
             if 0 == val:
                 set_world_inactive()