From 7c8c0b0d03c945eafce89c710680038c699a62b2 Mon Sep 17 00:00:00 2001
From: Samual Lenks <samual@xonotic.org>
Date: Thu, 10 Oct 2013 01:56:22 -0400
Subject: [PATCH] More cleanup

---
 qcsrc/menu/xonotic/serverlist.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c
index 4e1feee64d..4b528f2a6f 100644
--- a/qcsrc/menu/xonotic/serverlist.c
+++ b/qcsrc/menu/xonotic/serverlist.c
@@ -223,7 +223,6 @@ entity Get_Cat_Ent(float catnum)
 	}
 }
 
-
 float IsServerInList(string list, string srv)
 {
 	string p;
@@ -285,8 +284,6 @@ float CheckCategoryForEntry(float entry)
 		else if(k == "M") { modtype = strtolower(v); }
 	}
 
-	//print(sprintf("modtype = %s\n", modtype)); 
-
 	if(impure > autocvar_menu_slist_purethreshold) { impure = TRUE; }
 	else { impure = FALSE; }
 
@@ -302,15 +299,13 @@ float CheckCategoryForEntry(float entry)
 			case "xpm": { return CAT_XPM; } 
 			case "minstagib": { return CAT_MINSTAGIB; }
 			case "overkill": { return CAT_OVERKILL; }
+			//case "nix": { return CAT_NIX; }
+			//case "newtoys": { return CAT_NEWTOYS; }
 
 			// "cts" is allowed as compat, xdf is replacement
 			case "cts": 
 			case "xdf": { return CAT_DEFRAG; }
 			
-			//if(modname != "CTS")
-			//if(modname != "NIX")
-			//if(modname != "NewToys")
-			
 			default: { dprint(sprintf("Found strange mod type: %s\n", modtype)); return CAT_MODIFIED; }
 		}
 	}
@@ -645,8 +640,8 @@ void XonoticServerList_draw(entity me)
 		}
 		if(autocvar_menu_slist_categories_onlyifmultiple && (category_draw_count == 1))
 		{
-			category_name[0] = category_name[1] = -1;
-			category_item[0] = category_item[1] = -1;
+			category_name[0] = -1;
+			category_item[0] = -1;
 			category_draw_count = 0;
 			me.nItems = itemcount;
 		}
-- 
2.39.5