From 4f7c896bf72d936e42c51b6957ad9907997ef61a Mon Sep 17 00:00:00 2001 From: div0 Date: Fri, 27 Feb 2009 05:43:38 +0000 Subject: [PATCH] support g_full_getstatus_response by menu QC git-svn-id: svn://svn.icculus.org/nexuiz/trunk@6002 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/menu/nexuiz/playerlist.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/qcsrc/menu/nexuiz/playerlist.c b/data/qcsrc/menu/nexuiz/playerlist.c index 0a7e1bd9d..29b3259bf 100644 --- a/data/qcsrc/menu/nexuiz/playerlist.c +++ b/data/qcsrc/menu/nexuiz/playerlist.c @@ -116,6 +116,11 @@ void drawListBoxItemNexuizPlayerList(entity me, float i, vector absSize, float i s = me.getPlayerList(me, i, PLAYERPARM_NAME); score = me.getPlayerList(me, i, PLAYERPARM_SCORE); + if((t = strstrofs(score, ":", 0)) >= 0) + score = substring(score, 0, t); + if((t = strstrofs(score, ",", 0)) >= 0) + score = substring(score, 0, t); + s = draw_TextShortenToWidth(s, (me.columnNameSize / me.realFontSize_x), 1); score = draw_TextShortenToWidth(score, me.columnScoreSize / me.realFontSize_x, 0); -- 2.39.2