Improve compat with nq servers.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6126 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-11-14 00:35:23 +00:00
parent 566bba6af1
commit 5ace5c8d3f
2 changed files with 5 additions and 2 deletions

View file

@ -973,7 +973,7 @@ void CLFTE_ParseEntities(void)
if (!cl.validsequence) if (!cl.validsequence)
cl.ackframes[cl.numackframes++] = -1; cl.ackframes[cl.numackframes++] = -1;
else else
cl.ackframes[cl.numackframes++] = cls.netchan.incoming_sequence; cl.ackframes[cl.numackframes++] = cls.netchan.incoming_unreliable;
{ {
extern vec3_t demoangles; extern vec3_t demoangles;

View file

@ -5374,6 +5374,9 @@ static void CL_ProcessUserInfo (int slot, player_info_t *player)
int i; int i;
char *col; char *col;
int ospec = player->spectator; int ospec = player->spectator;
if (cls.protocol == CP_NETQUAKE)
player->userid = slot;
Q_strncpyz (player->name, InfoBuf_ValueForKey (&player->userinfo, "name"), sizeof(player->name)); Q_strncpyz (player->name, InfoBuf_ValueForKey (&player->userinfo, "name"), sizeof(player->name));
Q_strncpyz (player->team, InfoBuf_ValueForKey (&player->userinfo, "team"), sizeof(player->team)); Q_strncpyz (player->team, InfoBuf_ValueForKey (&player->userinfo, "team"), sizeof(player->team));
@ -5443,7 +5446,7 @@ static void CL_ProcessUserInfo (int slot, player_info_t *player)
#ifdef QWSKINS #ifdef QWSKINS
else if (cl.teamplay && cl.playerview[0].spectator && slot == Cam_TrackNum(&cl.playerview[0])) //skin forcing cares about the team of the guy we're tracking. else if (cl.teamplay && cl.playerview[0].spectator && slot == Cam_TrackNum(&cl.playerview[0])) //skin forcing cares about the team of the guy we're tracking.
Skin_FlushPlayers(); Skin_FlushPlayers();
else if (cls.state == ca_active) else if (cls.state >= ca_onserver)
Skin_Find (player); Skin_Find (player);
CL_NewTranslation (slot); CL_NewTranslation (slot);