parse ping and pl properly
This commit is contained in:
parent
be93162837
commit
196622a83f
|
@ -572,7 +572,10 @@ sv_update_net (server_t *sv, qmsg_t *msg, int ping)
|
||||||
player_t *pl;
|
player_t *pl;
|
||||||
|
|
||||||
slot = MSG_ReadByte (msg);
|
slot = MSG_ReadByte (msg);
|
||||||
val = MSG_ReadShort (msg);
|
if (ping)
|
||||||
|
val = MSG_ReadShort (msg);
|
||||||
|
else
|
||||||
|
val = MSG_ReadByte (msg);
|
||||||
if (slot >= MAX_SV_PLAYERS) {
|
if (slot >= MAX_SV_PLAYERS) {
|
||||||
qtv_printf ("bogus player: %d\n", slot);
|
qtv_printf ("bogus player: %d\n", slot);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue