home · contact · privacy
Server/py: Fix KeyError-triggering typo.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 24 Feb 2015 10:38:29 +0000 (11:38 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 24 Feb 2015 10:38:29 +0000 (11:38 +0100)
plomrogue-server.py

index c28f4def769ed6b6518009c6d9c0e690daa12aae..25e2ce41d7f1147c00fb2df46a02a545d2457d3f 100755 (executable)
@@ -206,7 +206,7 @@ def replay_game():
     io_db["file_record"] = open(io_db["path_record"], "r")
     io_db["file_record"].prefix = "record file line "
     io_db["file_record"].line_n = 1
-    while world_db["turn"] < opts.replay:
+    while world_db["TURN"] < opts.replay:
         line = io_db["file_record"].readline()
         if "" == line:
             break