home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6e0d38
)
Undo debugging refactoring.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 10 Mar 2015 03:23:52 +0000
(
04:23
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 10 Mar 2015 03:23:52 +0000
(
04:23
+0100)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index ea5b40a2a29b5e96f46fe769e3de7a4cae5023ef..ce44fa2da969c375e77440e34e0f5d66b5146a91 100755
(executable)
--- 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()