[Commits] [wesnoth/wesnoth] 15698b: make wesnothd::send_to_many( .., pred, ...) a tem...

GitHub noreply at github.com
Wed Jun 10 12:26:32 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 15698bbea6f5a8eca5d98ed27baf9b7f5bff4292
      https://github.com/wesnoth/wesnoth/commit/15698bbea6f5a8eca5d98ed27baf9b7f5bff4292
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-06-10 (Wed, 10 Jun 2015)

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

  Log Message:
  -----------
  make wesnothd::send_to_many( .., pred, ...)  a template

this is faster than the boost::function version. (also note that it's
still possible to pass a  boost::function to wesnothd::send_to_many)


  Commit: 6aa3b3bc9a920638b68e6ceebd96a23822767c8d
      https://github.com/wesnoth/wesnoth/commit/6aa3b3bc9a920638b68e6ceebd96a23822767c8d
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-06-10 (Wed, 10 Jun 2015)

  Changed paths:
    M src/menu_events.cpp
    M src/server/game.cpp
    M src/server/game.hpp
    M src/server/simple_wml.hpp
    M src/team.cpp
    M src/team.hpp
    M src/whiteboard/manager.cpp

  Log Message:
  -----------
  don't check team names on serverside

http://gna.org/bugs/?23028

previously clients could add a "team_name" to specific packages which
should only be redirect to sides in this team. But the serversided code
which calculated in which team a side was had some bugs:
1) It did not correctly handle sides that were in multiple teams
([side] team_name="team1,team2"...)
2) The serversided data about teams was not updated when wml changed the
teams, also the calculation which side was controlled by a human used
posssibly oudated information.

This commit moves this calculation to the sending client so that the
clients now must specify a list of sides to which the package should be
sended.


  Commit: 9e1aae1f795fad42007cd7cd68fa9ea2515791f0
      https://github.com/wesnoth/wesnoth/commit/9e1aae1f795fad42007cd7cd68fa9ea2515791f0
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-06-10 (Wed, 10 Jun 2015)

  Changed paths:
    M src/game_events/action_wml.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/server/game.cpp
    M src/server/game.hpp
    M src/server/server.cpp
    M src/tod_manager.cpp
    M src/tod_manager.hpp

  Log Message:
  -----------
  inform the server about turn changes by wml

The server uses this to display the current turn in the lobby.


Compare: https://github.com/wesnoth/wesnoth/compare/f8914468182e...9e1aae1f795f


More information about the Commits mailing list