Skip to content

Commit 1414c87

Browse files
committed
BUGFIX: "cmd pext" was slightly bugged. Sad noone point it out before.
1 parent 591067b commit 1414c87

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sv_user.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,8 +2996,9 @@ void Cmd_PEXT_f(void)
29962996
// do not reset it.
29972997
if (!sv_client->fteprotocolextensions)
29982998
{
2999-
sv_client->fteprotocolextensions = proto_value;
3000-
Con_DPrintf("PEXT: Client supports 0x%x fte extensions\n", proto_value);
2999+
sv_client->fteprotocolextensions = proto_value & svs.fteprotocolextensions;
3000+
if (sv_client->fteprotocolextensions)
3001+
Con_DPrintf("PEXT: Client supports 0x%x fte extensions\n", sv_client->fteprotocolextensions);
30013002
}
30023003
break;
30033004
#endif // PROTOCOL_VERSION_FTE
@@ -3007,8 +3008,9 @@ void Cmd_PEXT_f(void)
30073008
// do not reset it.
30083009
if (!sv_client->fteprotocolextensions2)
30093010
{
3010-
sv_client->fteprotocolextensions2 = proto_value;
3011-
Con_DPrintf("PEXT: Client supports 0x%x fte extensions2\n", proto_value);
3011+
sv_client->fteprotocolextensions2 = proto_value & svs.fteprotocolextensions2;
3012+
if (sv_client->fteprotocolextensions2)
3013+
Con_DPrintf("PEXT: Client supports 0x%x fte extensions2\n", sv_client->fteprotocolextensions2);
30123014
}
30133015
break;
30143016
#endif // PROTOCOL_VERSION_FTE2

0 commit comments

Comments
 (0)