diff options
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; } } |