mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-31 12:40:43 +00:00
Wipe the entity frames on map changes, so we arn't left with lots of ents all over the void.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2452 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
55f5344510
commit
aa4299426e
1 changed files with 5 additions and 0 deletions
|
@ -242,6 +242,7 @@ void Broadcast(cluster_t *cluster, char *buffer, int length, int suitablefor)
|
||||||
|
|
||||||
static void ParseServerData(sv_t *tv, netmsg_t *m, int to, unsigned int playermask)
|
static void ParseServerData(sv_t *tv, netmsg_t *m, int to, unsigned int playermask)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
int protocol;
|
int protocol;
|
||||||
viewer_t *v;
|
viewer_t *v;
|
||||||
|
|
||||||
|
@ -303,6 +304,10 @@ static void ParseServerData(sv_t *tv, netmsg_t *m, int to, unsigned int playerma
|
||||||
memset(tv->players, 0, sizeof(tv->players));
|
memset(tv->players, 0, sizeof(tv->players));
|
||||||
|
|
||||||
|
|
||||||
|
for (i = 0; i < MAX_ENTITY_FRAMES; i++)
|
||||||
|
{
|
||||||
|
tv->frame[i].numents = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (tv->usequkeworldprotocols)
|
if (tv->usequkeworldprotocols)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue