[Commits] [wesnoth/wesnoth] 0db553: Restore bounded_add()
GitHub
noreply at github.com
Sun Jan 21 15:28:09 UTC 2018
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 0db553ef36bc7d4d1ec10a7521a2c061d9234805
https://github.com/wesnoth/wesnoth/commit/0db553ef36bc7d4d1ec10a7521a2c061d9234805
Author: Jyrki Vesterinen <sandgtx at gmail.com>
Date: 2018-01-21 (Sun, 21 Jan 2018)
Changed paths:
M src/terrain/terrain.hpp
M src/tod_manager.cpp
M src/utils/math.hpp
Log Message:
-----------
Restore bounded_add()
Partial revert of commit ecbb15e1c6d1106ff2f8e540c584523481426c04.
Replacing bounded_add() with std::clamp() in these contexts disables
time-of-day bonuses, since ToD bonuses (the base value in these functions)
are almost always outside the range set in terrain properties.
More information about the Commits
mailing list