[Commits] [wesnoth/wesnoth] 6bd3ba: Fix typos in comments

GitHub noreply at github.com
Tue Apr 1 03:04:37 UTC 2014


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

  Changed paths:
    M data/ai/micro_ais/cas/ca_protect_unit_move.lua
    M data/ai/micro_ais/micro_ai_unit_variables.lua

  Log Message:
  -----------
  Fix typos in comments


  Commit: 6cfe5fa35197919001b3d43b7387a121ad3c04bf
      https://github.com/wesnoth/wesnoth/commit/6cfe5fa35197919001b3d43b7387a121ad3c04bf
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-03-31 (Mon, 31 Mar 2014)

  Changed paths:
    A data/ai/micro_ais/micro_ai_self_data.lua

  Log Message:
  -----------
  MAIs: add utility functions for storing information in AI's self.data

These provide a simple and consistent method of storing variables
inside [micro_ai] tags in the AI's persistent self.data variable. This
is needed for fixing a bug with variables stored there from a previous
MAI causing problems with a subsequent MAI


  Commit: 73a11634f77a364028119ef421a93fdf40ea9144
      https://github.com/wesnoth/wesnoth/commit/73a11634f77a364028119ef421a93fdf40ea9144
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-03-31 (Mon, 31 Mar 2014)

  Changed paths:
    M data/ai/micro_ais/micro_ai_helper.lua

  Log Message:
  -----------
  Micro AIs: check for existence of [micro_ai] tags in self.data when...

… setting up an MAI. Ideally, we would delete such previous occurrences
of [micro_ai] tags in the AI's self.data variable. However, the MAI can
be changed while it is not the AI's turn, when this is not possible. So
instead, we check for the existence of such tags and make sure we are
using a different ai_id.


  Commit: 1dfd79c3a5edeeb8e084ccda74996c91dc824dc1
      https://github.com/wesnoth/wesnoth/commit/1dfd79c3a5edeeb8e084ccda74996c91dc824dc1
  Author: mattsc <mattsc000 at gmail.com>
  Date:   2014-03-31 (Mon, 31 Mar 2014)

  Changed paths:
    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

  Log Message:
  -----------
  Micro AIs: use the new functions for storing information in self.data

… so that it is done in a consistent way and conflicts can be avoided
when setting up a subsequent MAI.


Compare: https://github.com/wesnoth/wesnoth/compare/66058c10efbc...1dfd79c3a5ed


More information about the Commits mailing list