home · contact · privacy
Fix memory map not updating world map terrain when previously explored.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 12 Mar 2015 21:40:23 +0000 (22:40 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 12 Mar 2015 21:40:23 +0000 (22:40 +0100)
roguelike-server

index 98bee7c6b8c431fd98d40a705ff7450e80027528..6b7d8ca075e001724f72e15baec3d449911a9fc0 100755 (executable)
@@ -530,8 +530,7 @@ def update_map_memory(t, age_map=True):
     for pos in [pos for pos in range(world_db["MAP_LENGTH"] ** 2)
                 if ord_v == t["fovmap"][pos]]:
         t["T_MEMDEPTHMAP"][pos] = ord_0
-        if ord_space == t["T_MEMMAP"][pos]:
-            t["T_MEMMAP"][pos] = world_db["MAP"][pos]
+        t["T_MEMMAP"][pos] = world_db["MAP"][pos]
     if age_map:
         age_some_memdepthmap_on_nonfov_cells()
     t["T_MEMTHING"] = [mt for mt in t["T_MEMTHING"]