[wesnoth-commits] [wesnoth/wesnoth] 29fcbd: Replaced round_double and round_portable with std:...

GitHub noreply at github.com
Sat Apr 14 14:57:31 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 29fcbd053da63b790eb3b4fac32e204b054929d4
      https://github.com/wesnoth/wesnoth/commit/29fcbd053da63b790eb3b4fac32e204b054929d4
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2018-04-15 (Sun, 15 Apr 2018)

  Changed paths:
    M src/ai/default/recruitment.cpp
    M src/display.cpp
    M src/formula/variant.cpp
    M src/statistics.cpp
    M src/utils/math.hpp

  Log Message:
  -----------
  Replaced round_double and round_portable with std::round

std::round(double) uses the desired half-away-from-0 method.




More information about the Commits mailing list