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

GitHub noreply at github.com
Mon May 9 02:59:10 UTC 2016


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 55985d70b223859d46711175092fca0b3e286928
      https://github.com/wesnoth/wesnoth/commit/55985d70b223859d46711175092fca0b3e286928
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2016-05-08 (Sun, 08 May 2016)

  Changed paths:
    M changelog
    M src/ai/testing/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