home · contact · privacy
Server/py: Fix map generation bug.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 7 Mar 2015 03:34:19 +0000 (04:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 7 Mar 2015 03:34:19 +0000 (04:34 +0100)
plomrogue-server.py

index e4f98968a2fcf20027ef27a6fb78deaa76ca2959..de1bd420cd2a54650c1b036798e1686081ec5505 100755 (executable)
@@ -435,6 +435,7 @@ def remake_map():
             return True
         return False
     store_seed = rand.seed
+    rand.seed = world_db["SEED_MAP"]
     world_db["MAP"] = bytearray(b'~' * (world_db["MAP_LENGTH"] ** 2))
     length = world_db["MAP_LENGTH"]
     add_half_width = (not (length % 2)) * int(length / 2)