surrsurus / edgequest

Edgequest Season Two
Mozilla Public License 2.0
8 stars 1 forks source link

A* bug #31

Closed XavilPergis closed 8 years ago

XavilPergis commented 8 years ago

A* pathfinding freezes

What Happened

A* pathfinding gets stuck in an infinite loop where it cannot push the tamed mob out of the way

What Should have Happened

Movement of the player should displace the tamed mob

Steps to reproducing

  1. Go into corridor
  2. Have tamed mob following
  3. Mouse click on other side of tamed mob
surrsurus commented 8 years ago

Thanks. I'll look into this right away.

surrsurus commented 8 years ago

I've confirmed this bug indeed does exist. I'll have the fix shortly

XavilPergis commented 8 years ago

Yeah, if you could test to see if a path is blocked, I would love that. It would prevent freezes when testing new world generators.

surrsurus commented 8 years ago

Okay, so the problem was in the mouse_move_astar. It would run continuously even if the A* path wasn't blocked, so that's been fixed. Thanks for letting me know about the bug.