[Commits] [wesnoth/wesnoth] b75b73: add "synced_context_id"

GitHub noreply at github.com
Tue Nov 25 18:16:07 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b75b7330de87d11535072940e4e22b31225b3384
      https://github.com/wesnoth/wesnoth/commit/b75b7330de87d11535072940e4e22b31225b3384
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

  Changed paths:
    M src/play_controller.cpp
    M src/play_controller.hpp
    M src/synced_context.cpp

  Log Message:
  -----------
  add "synced_context_id"

the plan is to allow non-current-players to send require_random.


  Commit: 0087b5c44ea95359fef02f9b3b43421511174ff9
      https://github.com/wesnoth/wesnoth/commit/0087b5c44ea95359fef02f9b3b43421511174ff9
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

  Changed paths:
    M src/server/game.cpp
    M src/server/game.hpp

  Log Message:
  -----------
  make server read "context_id"


  Commit: 9f7638e4e0144f47139a5caeb46423eba691c2d1
      https://github.com/wesnoth/wesnoth/commit/9f7638e4e0144f47139a5caeb46423eba691c2d1
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

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

  Log Message:
  -----------
  every client asks server for random seed.

this breaks mp compability.


  Commit: 00e51feb16c1d95f77f8fdf3075ffa5a65c85206
      https://github.com/wesnoth/wesnoth/commit/00e51feb16c1d95f77f8fdf3075ffa5a65c85206
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

  Changed paths:
    M src/play_controller.cpp
    M src/play_controller.hpp
    M src/server/game.cpp
    M src/synced_context.cpp

  Log Message:
  -----------
  count requests instead of synced contexts for require_random


  Commit: b39531a1a16ab306060042d02c98ea66b24cfd4b
      https://github.com/wesnoth/wesnoth/commit/b39531a1a16ab306060042d02c98ea66b24cfd4b
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

  Changed paths:
    M src/server/game.cpp

  Log Message:
  -----------
  comment fix


  Commit: 324d4898deefe7e6a47239f7b951f4af889b8d85
      https://github.com/wesnoth/wesnoth/commit/324d4898deefe7e6a47239f7b951f4af889b8d85
  Author: gfgtdf <tischpapier at gmail.com>
  Date:   2014-11-25 (Tue, 25 Nov 2014)

  Changed paths:
    M src/play_controller.cpp
    M src/play_controller.hpp
    M src/server/game.cpp
    M src/server/game.hpp
    M src/synced_context.cpp
    M src/synced_context.hpp

  Log Message:
  -----------
  Merge pull request #334 from gfgtdf/wesnothd_sides

allow every client to ask for random seed.

assume this scenaio:

[scenario]
## human sides 1,2
  [event]
    name = prestart
    [message]
      speaker = narrator
      message = "Hello"
    [/message]
    {GENERIC_UNIT .....}
  [/event]
[/scenario]

previously, in this scenario client 2 would have to wait for side 1 to click away the [message] because of the random seed required by {GENERIC_UNIT ..} because only client 1 was allowed to ask the server for a random seed (Note that waiting during prestart event means black screen), this patch is intended to fix such situations.


Compare: https://github.com/wesnoth/wesnoth/compare/99678ef29ad9...324d4898deef


More information about the Commits mailing list