[wesnoth-commits] [wesnoth/wesnoth] 096d8a: Fix [store_unit]'s stored coordinates for recalls

Steve Cotton noreply at github.com
Tue Jan 11 14:23:59 UTC 2022


  Branch: refs/heads/1.16
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 096d8aba1474e9c6583d240e7eedbcd66957f327
      https://github.com/wesnoth/wesnoth/commit/096d8aba1474e9c6583d240e7eedbcd66957f327
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M data/lua/wml-tags.lua
    A data/test/scenarios/put_to_recall_and_modify.cfg
    M data/test/scenarios/test_modify_unit.cfg
    M wml_test_schedule

  Log Message:
  -----------
  Fix [store_unit]'s stored coordinates for recalls

Units on the recall list might have x,y coordinates that are on the map, which
therefore need to be replaced with "recall,recall" within [store_unit]. The
existing code created a temporary variable, changed the coordinates, and then
returned the unchanged original instead of the temporary.

Add a new test that `[put_to_recall_list]` followed by `[modify_unit]`
doesn't move the unit back to the map.





More information about the Commits mailing list