diff options
author | sapier <Sapier at GMX dot net> | 2013-07-12 22:55:19 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-07-12 22:55:34 +0200 |
commit | 288948edf71b2f4f70f486df9c4b9a587ce68248 (patch) | |
tree | 023faa3e31ebd5bbb44a37c5ac5a62a4d1fa8475 | |
parent | a0771d0940e06236885ec753085c0df75c861d0e (diff) | |
download | minetest-288948edf71b2f4f70f486df9c4b9a587ce68248.tar.gz minetest-288948edf71b2f4f70f486df9c4b9a587ce68248.tar.bz2 minetest-288948edf71b2f4f70f486df9c4b9a587ce68248.zip |
Don't show flags in local favorites
-rw-r--r-- | builtin/mainmenu.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index ff2f45b7e..c8b0e4b87 100644 --- a/builtin/mainmenu.lua +++ b/builtin/mainmenu.lua @@ -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 |