home · contact · privacy
Undo debugging refactoring.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 10 Mar 2015 03:23:52 +0000 (04:23 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 10 Mar 2015 03:23:52 +0000 (04:23 +0100)
roguelike-server

index ea5b40a2a29b5e96f46fe769e3de7a4cae5023ef..ce44fa2da969c375e77440e34e0f5d66b5146a91 100755 (executable)
@@ -929,9 +929,6 @@ def get_dir_to_target(t, filter):
             dir_to_target = 0
         return dir_to_target
 
-    def FOO():
-        libpr.dijkstra_map()
-
     dir_to_target = False
     mem_depth_c = b' '
     run_i = 9 + 1 if "s" == filter else 1
@@ -940,7 +937,7 @@ def get_dir_to_target(t, filter):
         init_score_map()
         mem_depth_c = b'9' if b' ' == mem_depth_c \
                            else bytes([mem_depth_c[0] - 1])
-        if FOO(): # libpr.dijkstra_map():
+        if libpr.dijkstra_map():
             raise RuntimeError("No score map allocated for dijkstra_map().")
         dir_to_target = get_dir_from_neighbors()
         libpr.free_score_map()