[Commits] [wesnoth/wesnoth] bb5ed2: Micro AIs: clean up loading of Lua files

GitHub noreply at github.com
Mon Apr 7 21:24:53 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: bb5ed2e5a22f7b01995ec3d9f6fbc4df59aebf77
      https://github.com/wesnoth/wesnoth/commit/bb5ed2e5a22f7b01995ec3d9f6fbc4df59aebf77
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-04-07 (Mon, 07 Apr 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_big_animals.lua
    M data/ai/micro_ais/cas/ca_bottleneck_move.lua
    M data/ai/micro_ais/cas/ca_goto.lua
    M data/ai/micro_ais/cas/ca_hang_out.lua
    M data/ai/micro_ais/cas/ca_herding_herd_sheep.lua
    M data/ai/micro_ais/cas/ca_herding_sheep_move.lua
    M data/ai/micro_ais/cas/ca_hunter.lua
    M data/ai/micro_ais/cas/ca_messenger_attack.lua
    M data/ai/micro_ais/cas/ca_messenger_escort_move.lua
    M data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua
    M data/ai/micro_ais/cas/ca_messenger_move.lua
    M data/ai/micro_ais/cas/ca_patrol.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_functions.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua

  Log Message:
  -----------
  Micro AIs: clean up loading of Lua files

Consistently use wesnoth.require, avoid wesnoth.dofile. Move commands
as close to beginning of file as possible in order to facilitate custom
modifications of MAIs.





More information about the Commits mailing list