While enemies are attempting to move, the following error will be thrown if an enemy has no path to choose:
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.
While enemies are attempting to move, the following error will be thrown if an enemy has no path to choose:
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.