restore [endlvel] bonus= default behaviour
bonus= in [endlevel] previously defaulted to true, my last commit resulted in bonus= defaulting false. this commit restores the previous behaviour.
This commit is contained in:
parent
7471b4eeec
commit
89c461c1c6
1 changed files with 1 additions and 1 deletions
|
@ -1466,7 +1466,7 @@ int game_lua_kernel::intf_end_level(lua_State *L)
|
|||
typedef boost::tuple<bool/*is_victory*/, boost::optional<bool>/*bonus*/, boost::optional<int>/*percentage*/, boost::optional<bool>/*add*/ > t_side_result;
|
||||
const t_side_result default_result = t_side_result(
|
||||
cfg["result"] != "defeat",
|
||||
cfg["bonus"].apply_visitor(optional_bool_visitor()),
|
||||
cfg["bonus"].to_bool(true),
|
||||
cfg["carryover_percentage"].apply_visitor(optional_int_visitor()),
|
||||
cfg["carryover_add"].apply_visitor(optional_bool_visitor())
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue