fix bonus=yes/no in [endlevel]

http://gna.org/bugs/?24191
This commit is contained in:
gfgtdf 2015-12-17 01:28:46 +01:00
parent 75d125d070
commit 3b9a0fdb15

View file

@ -1475,9 +1475,9 @@ function wml_actions.endlevel(cfg)
local there_is_a_local_human_defeat = false
local bool_int = function(b)
if b == true then
return 0
elseif b == false then
return 1
elseif b == false then
return 0
else
return b
end