From 67464bc2ac58bea160137867cfcd89907c3d212e Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 7 Nov 2009 08:39:07 +0000 Subject: [PATCH] Correct tail setting after send --- Src/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Network.cpp b/Src/Network.cpp index ef7cb45..81a9b88 100644 --- a/Src/Network.cpp +++ b/Src/Network.cpp @@ -451,7 +451,7 @@ void Network::FlushSound(void) memcpy(snd_info, &this->sound_active[this->sound_head], (this->sound_head - this->sound_tail) * sizeof(struct NetworkUpdateSoundInfo)); } - this->sound_tail = (this->sound_tail + snd->n_items) % NETWORK_SOUND_BUF_SIZE; + this->sound_tail = this->sound_head; this->sound_last_send = SDL_GetTicks();