Sound doesn't work, ignore it

This commit is contained in:
simon.kagstrom 2009-04-13 08:57:01 +00:00
parent ae24458864
commit e1926ecd0a

View File

@ -439,6 +439,8 @@ void Network::EncodeSound()
static Uint8 tmp_buf[NETWORK_SOUND_BUF_SIZE];
int offset = 0;
/* This is not enabled yet... */
return;
/* Nothing to encode? */
if (!Network::is_master ||
this->GetSoundBufferSize() < NETWORK_SOUND_BUF_SIZE / 2)