readd side_for parameter for [message] with input

this was lost when porting the code to lua.
This commit is contained in:
gfgtdf 2015-09-21 15:46:00 +02:00
parent 76b357dce0
commit 4c3e00b3bb

View file

@ -196,7 +196,11 @@ function wesnoth.wml_actions.message(cfg)
-- Always show the dialog if it has no input, whether we are replaying or not
msg_dlg()
else
local choice = wesnoth.synchronize_choice(msg_dlg)
if type(sides_for) ~= "number" then
-- 0 means currently playing side.
sides_for = 0
end
local choice = wesnoth.synchronize_choice(msg_dlg, sides_for)
option_chosen = tonumber(choice.value)