From: Samual Lenks Date: Sun, 22 Dec 2013 08:05:15 +0000 (-0500) Subject: Skip if gametype is "overall" X-Git-Tag: xonotic-v0.8.0~139^2~1^2~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bc77ffad337bd2e1f2f70814f9002b31398e34a1;p=xonotic%2Fxonotic-data.pk3dir.git Skip if gametype is "overall" --- diff --git a/qcsrc/menu/xonotic/statslist.c b/qcsrc/menu/xonotic/statslist.c index d9a817b78..94afb2574 100644 --- a/qcsrc/menu/xonotic/statslist.c +++ b/qcsrc/menu/xonotic/statslist.c @@ -203,7 +203,10 @@ void XonoticStatsList_getStats(entity me) else { float dividerpos = strstrofs(e, "/", 0); + string gametype = substring(e, 0, dividerpos); + if(gametype == "overall") { continue; } + string event = substring(e, (dividerpos + 1), strlen(e) - (dividerpos + 1)); // if we are ranked, read these sets of possible options