[Commits] [wesnoth/wesnoth] 76a8a9: Default AI: fix two bugs in the goto candidate act...

GitHub noreply at github.com
Mon May 9 19:35:30 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 76a8a9857412848837839e18ed08f0ded4534b58
      https://github.com/wesnoth/wesnoth/commit/76a8a9857412848837839e18ed08f0ded4534b58
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

  Changed paths:
    M changelog
    M src/ai/default/ca.cpp

  Log Message:
  -----------
  Default AI: fix two bugs in the goto candidate action

Both bugs had the same effect: if a unit could not get to its goal
location, goto moves by all other units during the same turn were
abandoned. However, there were two separate causes for:
1. The goal location was unreachable. This was due to a typo in the
code.
2. The goal was theoretically reachable, but blocked by allies. In this
case, it could happen that the unit did not move, resulting in the CA
being blacklisted.





More information about the Commits mailing list