normalement plus de bug fantôme

This commit is contained in:
DylanVsn 2019-12-09 16:26:54 +01:00
parent a01872db46
commit 6abc283686

View File

@ -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: