diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-08-21 12:07:42 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-08-21 12:07:42 +0000 |
commit | 6464d32435c9b42d0a02501d019fc271f7c91ceb (patch) | |
tree | f5288308b20d0261f0ac528b34eaa34b3ce7c81b /source/mvd_parse.c | |
parent | babc9ddfcd2f123f919d6586d84580698488a968 (diff) |
Reworked the way datagram is built for protocol 36 clients.
Server now tries to preserve exact order of all kids of unreliable messages
if entire datagram fits into network message.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r-- | source/mvd_parse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c index 890962f..d76f03f 100644 --- a/source/mvd_parse.c +++ b/source/mvd_parse.c @@ -497,7 +497,7 @@ static void MVD_ParseSound( mvd_t *mvd, int extrabits ) { mleaf_t *leaf; int area; player_state_t *ps; - sound_packet_t *msg; + message_packet_t *msg; edict_t *entity; flags = MSG_ReadByte(); @@ -588,7 +588,7 @@ static void MVD_ParseSound( mvd_t *mvd, int extrabits ) { continue; } - msg = LIST_FIRST( sound_packet_t, &cl->msg_free, entry ); + msg = LIST_FIRST( message_packet_t, &cl->msg_free, entry ); msg->cursize = 0; msg->flags = flags; @@ -599,7 +599,8 @@ static void MVD_ParseSound( mvd_t *mvd, int extrabits ) { msg->sendchan = sendchan; List_Remove( &msg->entry ); - List_Append( &cl->msg_sound, &msg->entry ); + List_Append( &cl->msg_used[0], &msg->entry ); + cl->msg_bytes += MAX_SOUND_PACKET; } } |