Changed the protocol for VoIP packets to support legacy clients.
Previously, a legacy client wouldn't get a VoIP packet, but if they did, they'd panic and disconnect. Now they ignore them and continue on. This also gives us the framework to add other features legacy clients can ignore. Oh, this also has the benefit of allowing us to store incoming VoIP for playback in recorded demos. They'll play the chatter on VoIP clients, and be ignored on legacy ones. Huge win.
This commit is contained in:
parent
e0ebde0b27
commit
8ab3f7af8d
6 changed files with 79 additions and 16 deletions
|
@ -39,6 +39,16 @@ void Huff_putBit( int bit, byte *fout, int *offset) {
|
|||
*offset = bloc;
|
||||
}
|
||||
|
||||
int Huff_getBloc(void)
|
||||
{
|
||||
return bloc;
|
||||
}
|
||||
|
||||
void Huff_setBloc(int _bloc)
|
||||
{
|
||||
bloc = _bloc;
|
||||
}
|
||||
|
||||
int Huff_getBit( byte *fin, int *offset) {
|
||||
int t;
|
||||
bloc = *offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue