home · contact · privacy
Server/py: Fix variable name bug.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 6 Mar 2015 10:42:28 +0000 (11:42 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 6 Mar 2015 10:42:28 +0000 (11:42 +0100)
plomrogue-server.py

index 3234c4aeaa222f8ba22728112e49831ab71f6ffc..5010fe1587ef616f8bd5a9c17c954554d99d0356 100755 (executable)
@@ -850,7 +850,7 @@ def command_makeworld(seed_string):
 
 def command_maplength(maplength_string):
     """Redefine map length. Invalidate map, therefore lose all things on it."""
-    val = integer_test(val_string, 1, 256)
+    val = integer_test(maplength_string, 1, 256)
     if None != val:
         world_db["MAP_LENGTH"] = val
         set_world_inactive()