[Commits] [wesnoth/wesnoth] 3e33da: Wesnothd/Game: formatting cleanup

GitHub noreply at github.com
Fri Dec 15 11:20:53 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3e33da740978198531b4e1c68099a9d7edbf5e08
      https://github.com/wesnoth/wesnoth/commit/3e33da740978198531b4e1c68099a9d7edbf5e08
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-12-15 (Fri, 15 Dec 2017)

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

  Log Message:
  -----------
  Wesnothd/Game: formatting cleanup


  Commit: 252e77443333ba2b0e0b3abbf070ce507d8d33b6
      https://github.com/wesnoth/wesnoth/commit/252e77443333ba2b0e0b3abbf070ce507d8d33b6
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-12-15 (Fri, 15 Dec 2017)

  Changed paths:
    M src/server/game.cpp

  Log Message:
  -----------
  Wesnothd/Game: removed unused mp_game_title attribute from level data


  Commit: dd41080a99871997e45666f636b8e1985a312092
      https://github.com/wesnoth/wesnoth/commit/dd41080a99871997e45666f636b8e1985a312092
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-12-15 (Fri, 15 Dec 2017)

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

  Log Message:
  -----------
  Wesnothd/Game: code cleanup

* Range-for
* Auto
* Used simplified index-based for-loops over in-loop index calculation via ptr distance.
* Used shared_ptr::reset


  Commit: 8ad14255e119725e77a0a054beeb6f9b11768b81
      https://github.com/wesnoth/wesnoth/commit/8ad14255e119725e77a0a054beeb6f9b11768b81
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-12-15 (Fri, 15 Dec 2017)

  Changed paths:
    M src/server/server.cpp

  Log Message:
  -----------
  Wesnothd: fixed outdated game list being erroneously sent to clients on game close

When a host canceled a game and returned to the lobby, they would see their just-closed game briefly
appear in the game list before disappearing again. Upon debugging, I found that the client was receiving
gamelist data that included the closed game. A game-was-deleted diff entry is still sent by cleanup_game.


Compare: https://github.com/wesnoth/wesnoth/compare/8473e4928825...8ad14255e119


More information about the Commits mailing list