Skip to content

Commit

Permalink
restore [endlvel] bonus= default behaviour
Browse files Browse the repository at this point in the history
bonus= in [endlevel] previously defaulted to true, my last commit
resulted in bonus= defaulting false. this commit restores the previous
behaviour.
  • Loading branch information
gfgtdf committed Feb 11, 2015
1 parent 7471b4e commit 89c461c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -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())
);
Expand Down

0 comments on commit 89c461c

Please sign in to comment.