readd side_for parameter for [message] with input
this was lost when porting the code to lua.
This commit is contained in:
parent
76b357dce0
commit
4c3e00b3bb
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue