[Commits] [wesnoth/wesnoth] 1d2b3b: Micro AIs: don't check for specific value of move ...

GitHub noreply at github.com
Fri Apr 18 14:56:12 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1d2b3b8ffbcb29370c595d06057e3f17a1ed6635
      https://github.com/wesnoth/wesnoth/commit/1d2b3b8ffbcb29370c595d06057e3f17a1ed6635
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-18 (Fri, 18 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_big_animals.lua
    M data/ai/micro_ais/cas/ca_forest_animals_move.lua
    M data/ai/micro_ais/cas/ca_hang_out.lua
    M data/ai/micro_ais/cas/ca_healer_move.lua
    M data/ai/micro_ais/cas/ca_herding_attack_close_enemy.lua
    M data/ai/micro_ais/cas/ca_herding_herd_sheep.lua
    M data/ai/micro_ais/cas/ca_simple_attack.lua
    M data/ai/micro_ais/cas/ca_stationed_guardian.lua
    M data/ai/micro_ais/cas/ca_wolves_move.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_functions.lua
    M data/ai/micro_ais/cas/ca_wolves_wander.lua
    M data/ai/micro_ais/cas/ca_zone_guardian.lua

  Log Message:
  -----------
  Micro AIs: don't check for specific value of move rating

Don’t check whether rating equals (or doesn’t equal) -9e99 or the like,
verify that a valid move was found instead.  Also, avoid setting
variables to empty tables if not needed.





More information about the Commits mailing list