[Commits] [wesnoth/wesnoth] 8b1f3c: move undo_stack to gamestate class

GitHub noreply at github.com
Fri Sep 11 20:37:20 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 8b1f3c856cc61cc59b32f12d0cee6c2da8d6ac4c
      https://github.com/wesnoth/wesnoth/commit/8b1f3c856cc61cc59b32f12d0cee6c2da8d6ac4c
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M src/game_state.cpp
    M src/game_state.hpp
    M src/play_controller.cpp
    M src/play_controller.hpp
    M src/playmp_controller.cpp
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  move undo_stack to gamestate class

the undo stack must be part of the gamestate becasue it is used for the
delayed shroud updates.


  Commit: ca0bf513aa740237e502c2a2f167bdc92c7918a6
      https://github.com/wesnoth/wesnoth/commit/ca0bf513aa740237e502c2a2f167bdc92c7918a6
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M src/unit.cpp

  Log Message:
  -----------
  fix a segfault when loading a savegame.


  Commit: 20a2a17f880d3b9976cc29303f85018d03da5f40
      https://github.com/wesnoth/wesnoth/commit/20a2a17f880d3b9976cc29303f85018d03da5f40
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M src/replay.cpp
    M src/replay.hpp

  Log Message:
  -----------
  fix chat during mp replays

previously it could casue OOS when chatting during an mp replay because
the replay_pos in other savegames could become wrong (becasue the chat
mesage might be inseted before the replay position of those snapshots)


  Commit: 276a79ab3b91391ac3d1e02fb69aa0fe5bfb4424
      https://github.com/wesnoth/wesnoth/commit/276a79ab3b91391ac3d1e02fb69aa0fe5bfb4424
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M src/replay.cpp
    M src/replay.hpp

  Log Message:
  -----------
  remove unused function


  Commit: 445ceb119fe7991a3ae0e43486cfb3751fbdd8fc
      https://github.com/wesnoth/wesnoth/commit/445ceb119fe7991a3ae0e43486cfb3751fbdd8fc
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  add a comment


  Commit: 757cde164b73a43b34091c2656b66cbbab0e57a0
      https://github.com/wesnoth/wesnoth/commit/757cde164b73a43b34091c2656b66cbbab0e57a0
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M src/play_controller.cpp

  Log Message:
  -----------
  fix mp failing to load scenarios

previously the scenario's id was lost when reloading a scenario.


  Commit: f01252a42c25adce12fe8fee9de82e3b669fa71c
      https://github.com/wesnoth/wesnoth/commit/f01252a42c25adce12fe8fee9de82e3b669fa71c
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-09-11 (Fri, 11 Sep 2015)

  Changed paths:
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  add [unsynced] actionwml

This can be used like in the following example (note that without the
[unsynced] it would cause OOS becasue rand= might or might not be
called.):

[unsynced]
[store_side]
variable = "side"
side = "$side_number"
[/store_side]
[if]
[variable]
name = "side.controller"
equals = "human"
[/variable]
[then]
[set_variable]
name = "num"
rand = _ "two,four,seven"
[/set_variable]
[message]
message = _ "I want $num stones"
[/message]
[/then]
[/if]
[unsynced]


Compare: https://github.com/wesnoth/wesnoth/compare/1c8bf80634cd...f01252a42c25


More information about the Commits mailing list