Simulate lobby activity: use wesnoth.random() to generate game name

I missed this in commit e7c2105c48.
This commit is contained in:
Jyrki Vesterinen 2016-10-25 19:22:01 +03:00
parent 1b37b12849
commit 35f01dd7b5

View file

@ -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()