mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 07:13:25 +00:00
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
@ -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…
x
Reference in New Issue
Block a user