[Commits] [wesnoth/wesnoth] 1a5e90: ai_helper: correctly and consistently deal with in...
GitHub
noreply at github.com
Sun Oct 9 15:51:22 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 1a5e9051a861b53d5c2e88336d5890e9a591af6e
https://github.com/wesnoth/wesnoth/commit/1a5e9051a861b53d5c2e88336d5890e9a591af6e
Author: mattsc <mattsc000 at gmail.com>
Date: 2016-10-09 (Sun, 09 Oct 2016)
Changed paths:
M data/ai/lua/ai_helper.lua
Log Message:
-----------
ai_helper: correctly and consistently deal with invisible units
Previously, some functions saw invisible units, while others did not.
Moreover, this behavior could be triggered on and off for some
functions, but not for others, and the parameter to do so was not the
same in all cases.
Now, the default setting for all ai_helper functions is to ignore
invisible units and this can be turned on and off with the same
parameter, viewing_side, with the same syntax and meaning as for the
built-in functions wesnoth.find_path() and wesnoth.find_reach(). This
means hat it can be passed directly between those functions and all the
ai_helper functions.
More information about the Commits
mailing list