mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 15:18:34 +00:00
MP Tests: Fix disagreement in plugin context name
This commit is contained in:
parent
cdb164052a
commit
e0ce22880e
2
host.lua
2
host.lua
@ -61,7 +61,7 @@ local function plugin()
|
||||
end
|
||||
context.select_level({index = s.index})
|
||||
|
||||
log("configuring a game")
|
||||
log("configuring a game")
|
||||
context.set_name({name = "Test"})
|
||||
context.update_settings({registered_users = false})
|
||||
|
||||
|
8
join.lua
8
join.lua
@ -97,7 +97,7 @@ local function plugin()
|
||||
|
||||
context.chat({message = "done first join"})
|
||||
|
||||
while not (info.name == "Dialog" or info.name == "Multiplayer Wait") do
|
||||
while not (info.name == "Dialog" or info.name == "Multiplayer Join") do
|
||||
if context.join then
|
||||
context.join({})
|
||||
else
|
||||
@ -115,11 +115,11 @@ local function plugin()
|
||||
|
||||
repeat
|
||||
events, context, info = coroutine.yield()
|
||||
idle_text("in " .. info.name .. " waiting for mp wait")
|
||||
until info.name == "Multiplayer Wait"
|
||||
idle_text("in " .. info.name .. " waiting for mp join")
|
||||
until info.name == "Multiplayer Join"
|
||||
end
|
||||
|
||||
log("got to multiplayer wait...")
|
||||
log("got to multiplayer join...")
|
||||
context.chat({message = "ready"})
|
||||
|
||||
repeat
|
||||
|
@ -290,7 +290,7 @@ void mp_join_game::pre_show(window& window)
|
||||
//
|
||||
// Set up the Lua plugin context
|
||||
//
|
||||
plugins_context_.reset(new plugins_context("Multiplayer Join Game"));
|
||||
plugins_context_.reset(new plugins_context("Multiplayer Join"));
|
||||
|
||||
plugins_context_->set_callback("launch", [&window](const config&) { window.set_retval(window::OK); }, false);
|
||||
plugins_context_->set_callback("quit", [&window](const config&) { window.set_retval(window::CANCEL); }, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user