[Commits] [wesnoth/wesnoth] b282ef: use game_data* instead of boost::optional<game_dat...

GitHub noreply at github.com
Wed Feb 24 17:07:26 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b282ef7236cee438b3e6dde650a4c7f82bfda485
      https://github.com/wesnoth/wesnoth/commit/b282ef7236cee438b3e6dde650a4c7f82bfda485
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-24 (Wed, 24 Feb 2016)

  Changed paths:
    M src/ai/testing/stage_sf_with_rca.cpp
    M src/game_events/action_wml.cpp
    M src/play_controller.cpp
    M src/synced_commands.cpp
    M src/tod_manager.cpp
    M src/tod_manager.hpp

  Log Message:
  -----------
  use game_data* instead of boost::optional<game_data&> in tod_manager

after updating to boost 1.60 boost have me erros related to
boost::optional<game_data&> in stage_sf_with_rca.cpp where game_data is
not defined (only declared).

Using game_data* solved this problems and also simplies the code by
using simpler datatypes.


  Commit: bcb06e4a7a74b894b5247ad867df905722d334a4
      https://github.com/wesnoth/wesnoth/commit/bcb06e4a7a74b894b5247ad867df905722d334a4
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2016-02-24 (Wed, 24 Feb 2016)

  Changed paths:
    M src/gettext.hpp
    M src/gettext_boost.cpp
    M src/lua/lvm.cpp
    M src/scripting/lua_common.cpp

  Log Message:
  -----------
  fix lua string and tstring comparision

lua string now use a locale indpenedent comparision, this prevents OOS.

This commit also implements comparision operators for lua tstring which
use a language dependend collate facet from boost locale. (which usually
uses an icu or a winapi backend)


Compare: https://github.com/wesnoth/wesnoth/compare/a33e37a2fc47...bcb06e4a7a74


More information about the Commits mailing list