123outerme / Warper

2D Tactical Action RPG based on teleporting abilities.
MIT License
2 stars 1 forks source link

Ocassionally, "Move" Path Display Will Crash #7

Closed 123outerme closed 4 years ago

123outerme commented 4 years ago

I'm not sure why but the preview path that selecting "Move" gives will crash occasionally. Doesn't seem to be based on the cursor position, window status, etc. Investigate more and fix!

123outerme commented 4 years ago

For some reason, moving the camera while previewing movement would cause endX (at least, if not endY as well) to become a large and invalid number, crashing the pathfinding algorithm. This is now protected against in the algorithm.