Skip to content

Commit

Permalink
BUGFIX: "cmd pext" was slightly bugged. Sad noone point it out before.
Browse files Browse the repository at this point in the history
  • Loading branch information
qqshka committed Oct 6, 2011
1 parent 591067b commit 1414c87
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/sv_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -2996,8 +2996,9 @@ void Cmd_PEXT_f(void)
// do not reset it.
if (!sv_client->fteprotocolextensions)
{
sv_client->fteprotocolextensions = proto_value;
Con_DPrintf("PEXT: Client supports 0x%x fte extensions\n", proto_value);
sv_client->fteprotocolextensions = proto_value & svs.fteprotocolextensions;
if (sv_client->fteprotocolextensions)
Con_DPrintf("PEXT: Client supports 0x%x fte extensions\n", sv_client->fteprotocolextensions);
}
break;
#endif // PROTOCOL_VERSION_FTE
Expand All @@ -3007,8 +3008,9 @@ void Cmd_PEXT_f(void)
// do not reset it.
if (!sv_client->fteprotocolextensions2)
{
sv_client->fteprotocolextensions2 = proto_value;
Con_DPrintf("PEXT: Client supports 0x%x fte extensions2\n", proto_value);
sv_client->fteprotocolextensions2 = proto_value & svs.fteprotocolextensions2;
if (sv_client->fteprotocolextensions2)
Con_DPrintf("PEXT: Client supports 0x%x fte extensions2\n", sv_client->fteprotocolextensions2);
}
break;
#endif // PROTOCOL_VERSION_FTE2
Expand Down

0 comments on commit 1414c87

Please sign in to comment.