From: Christian Heller Date: Tue, 10 Mar 2015 03:23:52 +0000 (+0100) Subject: Undo debugging refactoring. X-Git-Url: https://plomlompom.com/repos/unset_cookie?a=commitdiff_plain;h=07b41b8fbdfbe03791774bfcc0b4fefb1cc2b4d3;p=plomrogue Undo debugging refactoring. --- diff --git a/roguelike-server b/roguelike-server index ea5b40a..ce44fa2 100755 --- a/roguelike-server +++ b/roguelike-server @@ -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()