parse ping and pl properly

This commit is contained in:
Bill Currie 2005-05-07 05:16:54 +00:00
parent be93162837
commit 196622a83f

View file

@ -572,7 +572,10 @@ sv_update_net (server_t *sv, qmsg_t *msg, int ping)
player_t *pl;
slot = MSG_ReadByte (msg);
if (ping)
val = MSG_ReadShort (msg);
else
val = MSG_ReadByte (msg);
if (slot >= MAX_SV_PLAYERS) {
qtv_printf ("bogus player: %d\n", slot);
return;