normalement plus de bug fantôme
This commit is contained in:
parent
a01872db46
commit
6abc283686
@ -104,6 +104,9 @@ class Ghost(Entity):
|
||||
graph = SceneManager().scene.entities['level'].graph
|
||||
cur_node = graph[self.y//S][self.x//S]
|
||||
children = cur_node.children
|
||||
child_ok = list(filter(lambda c: c[0] == final_node, children))
|
||||
if child_ok:
|
||||
return [child_ok[0]]
|
||||
trace = [cur_node] + [x[0] for x in children]
|
||||
paths = [[x] for x in children]
|
||||
while 1:
|
||||
|
Reference in New Issue
Block a user