From 51ba51cb037b6297b20d045b3c14b889f910b02a Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 20 Oct 2006 14:22:17 +0000 Subject: [PATCH] Stopped sending out useless stat updates (they're sent later, anyway). git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2420 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/parse.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/fteqtv/parse.c b/fteqtv/parse.c index 2f5ffab67..7cdcb6775 100644 --- a/fteqtv/parse.c +++ b/fteqtv/parse.c @@ -475,7 +475,6 @@ static void ParseServerinfo(sv_t *tv, netmsg_t *m) static void ParsePrint(sv_t *tv, netmsg_t *m, int to, unsigned int mask) { - unsigned char *t; char text[1024]; char buffer[1024]; int level; @@ -498,29 +497,6 @@ static void ParsePrint(sv_t *tv, netmsg_t *m, int to, unsigned int mask) { if (level > 1) { - for (t = (unsigned char*)text; *t; t++) - { - if (*t >= 146 && *t < 156) - *t = *t - 146 + '0'; - if (*t == 143) - *t = '.'; - if (*t == 157 || *t == 158 || *t == 159) - *t = '-'; - if (*t >= 128) - *t -= 128; - if (*t == 16) - *t = '['; - if (*t == 17) - *t = ']'; - if (*t == 29) - *t = '-'; - if (*t == 30) - *t = '-'; - if (*t == 31) - *t = '-'; - if (*t == '\a') //doh. :D - *t = ' '; - } Sys_Printf(tv->cluster, "%s", text); } } @@ -892,7 +868,7 @@ static void ParseUpdateStat(sv_t *tv, netmsg_t *m, int to, unsigned int mask) else Sys_Printf(tv->cluster, "svc_updatestat: invalid stat number\n"); - Multicast(tv, m->data+m->startpos, m->readpos - m->startpos, to, mask, QW); +// Multicast(tv, m->data+m->startpos, m->readpos - m->startpos, to, mask, QW); } static void ParseUpdateStatLong(sv_t *tv, netmsg_t *m, int to, unsigned int mask) { @@ -914,7 +890,7 @@ static void ParseUpdateStatLong(sv_t *tv, netmsg_t *m, int to, unsigned int mask else Sys_Printf(tv->cluster, "svc_updatestatlong: invalid stat number\n"); - Multicast(tv, m->data+m->startpos, m->readpos - m->startpos, to, mask, QW); +// Multicast(tv, m->data+m->startpos, m->readpos - m->startpos, to, mask, QW); } static void ParseUpdateUserinfo(sv_t *tv, netmsg_t *m, int to, unsigned int mask)