Skip to content
Snippets Groups Projects
Commit 288948ed authored by sapier's avatar sapier Committed by PilzAdam
Browse files

Don't show flags in local favorites

parent a0771d09
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ local tabbuilder = {}
local menubar = {}
--------------------------------------------------------------------------------
function render_favourite(spec)
function render_favourite(spec,render_details)
local text = ""
if spec.name ~= nil then
......@@ -28,6 +28,10 @@ function render_favourite(spec)
end
end
if not render_details then
return text
end
local details = ""
if spec.password == true then
details = details .. "*"
......@@ -1081,11 +1085,13 @@ function tabbuilder.tab_multiplayer()
";]" ..
"textlist[1,0.35;7.5,3.35;favourites;"
local render_details = engine.setting_getbool("public_serverlist")
if #menu.favorites > 0 then
retval = retval .. render_favourite(menu.favorites[1])
retval = retval .. render_favourite(menu.favorites[1],render_details)
for i=2,#menu.favorites,1 do
retval = retval .. "," .. render_favourite(menu.favorites[i])
retval = retval .. "," .. render_favourite(menu.favorites[i],render_details)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment