[wesnoth-commits] [wesnoth/wesnoth] e148d2: ExpAI grab villages CA: fix enemy distance rating ...

mattsc noreply at github.com
Wed Jul 10 15:07:37 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e148d25d2abeab4c1a99142ffa35b5a15918a947
      https://github.com/wesnoth/wesnoth/commit/e148d25d2abeab4c1a99142ffa35b5a15918a947
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2019-07-10 (Wed, 10 Jul 2019)

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

  Log Message:
  -----------
  ExpAI grab villages CA: fix enemy distance rating under fog

ai_helper.get_closest_enemy() returns math.huge for the enemy distance if no enemy is visible to the AI. This fixes #4157.





More information about the Commits mailing list