Simulate lobby activity: use wesnoth.random() to generate game name
I missed this in commit e7c2105c48
.
This commit is contained in:
parent
1b37b12849
commit
35f01dd7b5
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ local function create_game(context)
|
|||
context.select_type({type = "scenario"})
|
||||
local s = info.find_level({id = "test1"})
|
||||
context.select_level({index = s.index})
|
||||
context.set_name({name = tostring(math.random(999999))})
|
||||
context.set_name({name = tostring(wesnoth.random(999999))})
|
||||
context.update_settings({registered_users = false})
|
||||
|
||||
events, context, info = coroutine.yield()
|
||||
|
|
Loading…
Add table
Reference in a new issue