[Commits] [wesnoth/wesnoth] af3a7a: Cleaned up remaining usecases of teams()

GitHub noreply at github.com
Tue Apr 25 22:26:11 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: af3a7a77347fedec7e0d5f7ba1d9b27df7bd93e5
      https://github.com/wesnoth/wesnoth/commit/af3a7a77347fedec7e0d5f7ba1d9b27df7bd93e5
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-04-26 (Wed, 26 Apr 2017)

  Changed paths:
    M src/display.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Cleaned up remaining usecases of teams()

* Cleaned up a few ternary cases (avoid ternary syntax in operator[])
* Made game_lua_kernel::board public so a helper function could use it to access get_team()
* Fixes up 8320dd3





More information about the Commits mailing list