home · contact · privacy
Server/py: Fix memdepthmapping bug.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 7 Mar 2015 13:21:46 +0000 (14:21 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 7 Mar 2015 13:21:46 +0000 (14:21 +0100)
plomrogue-server.py

index a3c8f8fd27e25d0a89a04d3ed64a7938fd54b0e0..a44f751313a057e04c432f5ba48df264a9d4e222 100755 (executable)
@@ -478,7 +478,7 @@ def update_map_memory(t):
                 t["T_MEMMAP"][pos] = world_db["MAP"][pos]
             continue
         if ord('0') <= t["T_MEMDEPTHMAP"][pos] \
-           and ord('9') >= t["T_MEMDEPTHMAP"][pos] \
+           and ord('9') > t["T_MEMDEPTHMAP"][pos] \
            and not rand.next() % (2 ** (t["T_MEMDEPTHMAP"][pos] - 48)):
             t["T_MEMDEPTHMAP"][pos] += 1
     for mt in [mt for mt in t["T_MEMTHING"]