[Commits] [wesnoth/wesnoth] e99423: Lua AIs: do not use empty tables as filters

GitHub noreply at github.com
Sat Apr 26 14:18:35 UTC 2014


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

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/micro_ais/cas/ca_bottleneck_move.lua

  Log Message:
  -----------
  Lua AIs: do not use empty tables as filters

It’s faster not to provide any argument to wesnoth.get_units() if all
units are to be found.





More information about the Commits mailing list