mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
parse ping and pl properly
This commit is contained in:
parent
be93162837
commit
196622a83f
1 changed files with 4 additions and 1 deletions
|
@ -572,7 +572,10 @@ sv_update_net (server_t *sv, qmsg_t *msg, int ping)
|
|||
player_t *pl;
|
||||
|
||||
slot = MSG_ReadByte (msg);
|
||||
val = MSG_ReadShort (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;
|
||||
|
|
Loading…
Reference in a new issue