[Commits] [wesnoth/wesnoth] b75f41: fix a check in move_unit

GitHub noreply at github.com
Sat Oct 18 19:56:11 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b75f41798258709522e5fcaea348b7733b473953
      https://github.com/wesnoth/wesnoth/commit/b75f41798258709522e5fcaea348b7733b473953
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-10-18 (Sat, 18 Oct 2014)

  Changed paths:
    M data/lua/wml-tags.lua

  Log Message:
  -----------
  fix a check in move_unit

The logic is supposed to be, if (x,y) == (prev_x, prev_y), then
skip the "find_vacant_hex" function because we don't have to move.
Instead we effectively had, if (x == prev_x OR y == prev_y), then
we can skip the check.

This revises a commit
72f138c54414bc0349def0271ec1ccbad984a28b

in the hopes to fix a bug reported here:
http://forums.wesnoth.org/viewtopic.php?f=4&t=41084


  Commit: a8d69793ee60e91971482904c5a1bbbcca874edd
      https://github.com/wesnoth/wesnoth/commit/a8d69793ee60e91971482904c5a1bbbcca874edd
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-10-18 (Sat, 18 Oct 2014)

  Changed paths:
    A data/test/scenarios/test_move_unit.cfg

  Log Message:
  -----------
  add tests for {MOVE_UNIT} macro


  Commit: 718f8f289cf894be80f0cbcd05d3b9c37cc2c233
      https://github.com/wesnoth/wesnoth/commit/718f8f289cf894be80f0cbcd05d3b9c37cc2c233
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-10-18 (Sat, 18 Oct 2014)

  Changed paths:
    M changelog

  Log Message:
  -----------
  update changelog


Compare: https://github.com/wesnoth/wesnoth/compare/76d8f38353d7...718f8f289cf8


More information about the Commits mailing list