[Commits] [wesnoth/wesnoth] 9b65db: allow putting units on recall list for nonpersiste...

GitHub noreply at github.com
Tue Mar 24 15:44:48 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9b65db80a39c75e68de8b9f690b6715a16814f8f
      https://github.com/wesnoth/wesnoth/commit/9b65db80a39c75e68de8b9f690b6715a16814f8f
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-03-22 (Sun, 22 Mar 2015)

  Changed paths:
    M src/actions/undo.cpp
    M src/ai/contexts.cpp
    M src/game_board.cpp
    M src/game_events/action_wml.cpp
    M src/menu_events.cpp
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  allow putting units on recall list for nonpersistent sides

persistent=no does not imply that the side does not have a recall list:
1) persisent=no did prevent units from this scenario to be carried over
to a next scenario but it did not prevent units from a previous scenario
to be carried over to this scenario.
2) [unit] in [side] and [unit] in action wml can give recall units to
nonpersistent sides.
3) The wiki does not mention that a side with persistent=no cannot have
recall units.

So i removed checks for [side]persistent= so that [unstore_unit] and
wesnoth.put_recall_unit can put units to the recall list and also tidied
up some other code that assumed sides with persistent=no to not have a
recall list.


  Commit: e503dcef41e9ffa8756f01d2a8ad501cc44fb2e3
      https://github.com/wesnoth/wesnoth/commit/e503dcef41e9ffa8756f01d2a8ad501cc44fb2e3
  Author: gfgtdf <tischpapier at gmail.com>
  Date:   2015-03-24 (Tue, 24 Mar 2015)

  Changed paths:
    M src/actions/undo.cpp
    M src/ai/contexts.cpp
    M src/game_board.cpp
    M src/game_events/action_wml.cpp
    M src/menu_events.cpp
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Merge pull request #389 from gfgtdf/recall_list

allow putting units on recall list for nonpersistent sides


Compare: https://github.com/wesnoth/wesnoth/compare/4f14e72532e7...e503dcef41e9


More information about the Commits mailing list