[wesnoth-commits] [wesnoth/wesnoth] 0421a5: ai_helper.get_closest_location: bug fix for border...
mattsc
noreply at github.com
Sat Sep 26 21:07:32 UTC 2020
Branch: refs/heads/1.14
Home: https://github.com/wesnoth/wesnoth
Commit: 0421a524f9a56169b66ad14941a044e9df74fa3a
https://github.com/wesnoth/wesnoth/commit/0421a524f9a56169b66ad14941a044e9df74fa3a
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