mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix signed bit operations in MSG_ReadBits
This commit is contained in:
parent
62cec249d7
commit
3a702ded65
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ int MSG_ReadBits( msg_t *msg, int bits ) {
|
|||
for(i=0;i<bits;i+=8) {
|
||||
Huff_offsetReceive (msgHuff.decompressor.tree, &get, msg->data, &msg->bit, msg->cursize<<3);
|
||||
// fwrite(&get, 1, 1, fp);
|
||||
value |= (get<<(i+nbits));
|
||||
value = (unsigned int)value | ((unsigned int)get<<(i+nbits));
|
||||
|
||||
if (msg->bit > msg->cursize<<3) {
|
||||
msg->readcount = msg->cursize + 1;
|
||||
|
|
Loading…
Reference in a new issue