void XonoticServerListTab_refresh(entity this, entity slist)
{
- bool clear = false;
- slist.refreshServerList(slist, clear ? REFRESHSERVERLIST_RESET : REFRESHSERVERLIST_ASK);
+ slist.refreshServerList(slist, REFRESHSERVERLIST_ASK);
}
void XonoticServerListTab_fill(entity me)
#include "dialog_multiplayer_join_serverinfo.qh"
#include <common/mapinfo.qh>
+#define IsFavorite(srv) IsServerInList(cvar_string("net_slist_favorites"), srv)
+#define IsPromoted(srv) IsServerInList(_Nex_ExtResponseSystem_PromotedServers, srv)
+#define IsRecommended(srv) IsServerInList(_Nex_ExtResponseSystem_RecommendedServers, srv)
+
+float m_gethostcachecategory(float entry) { return CategoryOverride(CategoryForEntry(entry)); }
+
void SL_ProcessCategoryOverrides(.string override_field_string, .float override_field)
{
for (int i = 0; i < category_ent_count; ++i)
{
if(me.nItems != 0)
{
- float thisPos = me.getItemStart(me, me.selectedItem);
- float thisHeight = me.getItemHeight(me, me.selectedItem);
+ float thisPos = me.getItemStart(me, me.selectedItem);
+ float thisHeight = me.getItemHeight(me, me.selectedItem);
vector org = boxToGlobal(eY * (thisPos - me.scrollPos), me.origin, me.size);
vector sz = boxToGlobalSize(eY * thisHeight + eX * (1 - me.controlWidth), me.size);
m_play_click_sound(MENU_SOUND_OPEN);
// function declarations
float IsServerInList(string list, string srv);
-#define IsFavorite(srv) IsServerInList(cvar_string("net_slist_favorites"), srv)
-#define IsPromoted(srv) IsServerInList(_Nex_ExtResponseSystem_PromotedServers, srv)
-#define IsRecommended(srv) IsServerInList(_Nex_ExtResponseSystem_RecommendedServers, srv)
entity RetrieveCategoryEnt(float catnum);
float CategoryOverride(float cat);
-float m_gethostcachecategory(float entry) { return CategoryOverride(CategoryForEntry(entry)); }
+float m_gethostcachecategory(float entry);
// fields for category entities