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

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


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 5fc48b3e88871cb3083bc3c01532dc6a3afa1a2a
      https://github.com/wesnoth/wesnoth/commit/5fc48b3e88871cb3083bc3c01532dc6a3afa1a2a
  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