From 3555ba42ce097b212c2377a98d5ee06b6cfa5074 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 10 Sep 2007 19:07:56 +0000 Subject: [PATCH] partial mol#4 we see stats on map changes, but not the userinfos yet git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2654 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/qw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fteqtv/qw.c b/fteqtv/qw.c index 98541fbf6..134df3c98 100644 --- a/fteqtv/qw.c +++ b/fteqtv/qw.c @@ -284,6 +284,12 @@ void BuildServerData(sv_t *tv, netmsg_t *msg, int servercount, viewer_t *viewer) WriteString2(msg, tv->serverinfo); WriteString(msg, "\"\n"); } + if (viewer) + { + //the quakeworld client will have flushed most of the information that it knows about things + //this is as good a place to flush our cache as any other + memset(viewer->currentstats, 0, sizeof(viewer->currentstats)); + } } void BuildNQServerData(sv_t *tv, netmsg_t *msg, qboolean mvd, int playernum) {