[wesnoth-commits] [wesnoth/wesnoth] d80214: ai_helper.get_closest_location: bug fix for border...

mattsc noreply at github.com
Sat Sep 26 21:04:02 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: d80214d9fcd5638fb3712545b40c306e4e3cea30
      https://github.com/wesnoth/wesnoth/commit/d80214d9fcd5638fb3712545b40c306e4e3cea30
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2020-09-26 (Sat, 26 Sep 2020)

  Changed paths:
    M data/ai/lua/ai_helper.lua

  Log Message:
  -----------
  ai_helper.get_closest_location: bug fix for border hexes

If a unit is passed as the last argument to this function, the returned hex is supposed to be passable for that unit. Hexes on the map border need to be excluded in this case.

This specifically also fixes a bug in the Messenger Escort Micro AI. Previously, waypoints right at the map border could sometimes lead to the AI showing an on-screen error message and becoming inactive.





More information about the Commits mailing list