diff options
author | sapier <Sapier at GMX dot net> | 2014-04-06 14:02:53 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-06-19 19:05:37 +0200 |
commit | 9a39848ba93eaa56f7f62921f8de7a19e3ed0713 (patch) | |
tree | 0a8fe2e5963bc6dbb2fd908162ad34d3737e8278 /src/script | |
parent | 99f565e8f2dcc58dfd0351d49ca42b022639488a (diff) | |
download | minetest-9a39848ba93eaa56f7f62921f8de7a19e3ed0713.tar.gz minetest-9a39848ba93eaa56f7f62921f8de7a19e3ed0713.tar.bz2 minetest-9a39848ba93eaa56f7f62921f8de7a19e3ed0713.zip |
Remove a lot of superfluous ifndef USE_CURL checks
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index f2628d0a1..cb32c9e82 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -456,15 +456,12 @@ int ModApiMainMenu::l_get_favorites(lua_State *L) } std::vector<ServerListSpec> servers; -#if USE_CURL + if(listtype == "online") { servers = ServerList::getOnline(); } else { servers = ServerList::getLocal(); } -#else - servers = ServerList::getLocal(); -#endif lua_newtable(L); int top = lua_gettop(L); @@ -582,15 +579,12 @@ int ModApiMainMenu::l_delete_favorite(lua_State *L) (listtype != "online")) return 0; -#if USE_CURL + if(listtype == "online") { servers = ServerList::getOnline(); } else { servers = ServerList::getLocal(); } -#else - servers = ServerList::getLocal(); -#endif int fav_idx = luaL_checkinteger(L,1) -1; |