[Commits] [wesnoth/wesnoth-old] e78462: Remove function ai_helper.random()

GitHub noreply at github.com
Thu Feb 20 19:33:15 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth-old
  Commit: e78462c39505ca66363a811d959f7d9f3d73fc36
      https://github.com/wesnoth/wesnoth-old/commit/e78462c39505ca66363a811d959f7d9f3d73fc36
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-02-20 (Thu, 20 Feb 2014)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    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_forest_animals_new_rabbit.lua
    M data/ai/micro_ais/cas/ca_herding_dog_move.lua
    M data/ai/micro_ais/cas/ca_hunter.lua
    M data/ai/micro_ais/cas/ca_lurkers.lua
    M data/ai/micro_ais/cas/ca_recruit_random.lua
    M data/ai/micro_ais/cas/ca_swarm_move.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua
    M data/ai/micro_ais/cas/ca_wolves_wander.lua

  Log Message:
  -----------
  Remove function ai_helper.random()

This was using the synced RNG which is exactly the wrong thing to do
within the AI evaluation/execution functions.





More information about the Commits mailing list