chessmasterhong / WaterEmblem

https://chessmasterhong.bitbucket.io/projects/WaterEmblem/
118 stars 27 forks source link

Bug with enemy pathfinding #137

Closed DrkSephy closed 9 years ago

DrkSephy commented 9 years ago

While enemies are attempting to move, the following error will be thrown if an enemy has no path to choose:

screen shot 2015-02-02 at 9 16 19 pm

Here, the general to the left my cursor wants to move to the left and down, where those squares are all occupied by other enemies. As such, those errors are thrown and the game slows to a crawl.

DrkSephy commented 9 years ago

Thanks to @docmarionum1, this bug was fixed. We are currently ending the enemy turn if they do not have a space to move.