[Commits] [wesnoth/wesnoth] 13836c: Micro AIs: use AI id instead of CA id as identifie...

GitHub noreply at github.com
Mon Mar 31 15:50:48 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 13836c6022bb203e441039dcddf2294a82002a5e
      https://github.com/wesnoth/wesnoth/commit/13836c6022bb203e441039dcddf2294a82002a5e
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-03-31 (Mon, 31 Mar 2014)

  Changed paths:
    M data/ai/micro_ais/cas/ca_goto.lua
    M data/ai/micro_ais/cas/ca_hang_out.lua
    M data/ai/micro_ais/micro_ai_helper.lua
    M data/ai/micro_ais/micro_ai_wml_tag.lua

  Log Message:
  -----------
  Micro AIs: use AI id instead of CA id as identifier

… for determining whether AI/CA ids are unique.  Also pass AI id to
eval/exec functions, instead of CA id.  This is also a step toward
fixing the bug with MAI variables remaining stored in units after an
MAI is removed.
In principle, the ca_id= key in the [micro_ai] tag should now be
renamed to ai_id, but that would break backward compatibility without
any benefit to the user, so we deal with it internally behind the
scenes instead.





More information about the Commits mailing list