mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
Correct tail setting after send
This commit is contained in:
parent
f4357b88bd
commit
67464bc2ac
@ -451,7 +451,7 @@ void Network::FlushSound(void)
|
|||||||
memcpy(snd_info, &this->sound_active[this->sound_head],
|
memcpy(snd_info, &this->sound_active[this->sound_head],
|
||||||
(this->sound_head - this->sound_tail) * sizeof(struct NetworkUpdateSoundInfo));
|
(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();
|
this->sound_last_send = SDL_GetTicks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user