[Commits] [wesnoth/wesnoth] ec1d0a: "change_controller" refactor

GitHub noreply at github.com
Sat Nov 22 23:58:16 UTC 2014


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

  Changed paths:
    M src/playturn.cpp

  Log Message:
  -----------
  "change_controller" refactor

old_controller != new_controller && !was_local && tm.is_local()
is not needed becasue
!was_local && tm.is_local()
already implies
old_controller != new_controller.


  Commit: 3bc30330c2d63d66669c10b8b0cc3c7dfdeaa781
      https://github.com/wesnoth/wesnoth/commit/3bc30330c2d63d66669c10b8b0cc3c7dfdeaa781
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2014-11-23 (Sun, 23 Nov 2014)

  Changed paths:
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  comment to assert.


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

  Changed paths:
    M src/playturn.cpp

  Log Message:
  -----------
  "change_controller" refactor

we don't need to restart the turn if it wasn't local before and isnt
local now.

Also we change the conditional structure which should have no effect on
the resulting code.


Compare: https://github.com/wesnoth/wesnoth/compare/87685816e841...f99e367292c1


More information about the Commits mailing list