int Int_Decode( CBitRead &entityBitBuffer, const CSVCMsg_SendTable::sendprop_t *pSendProp ) { int flags = pSendProp->flags(); if ( flags & SPROP_VARINT ) { if ( flags & SPROP_UNSIGNED ) { return (int)entityBitBuffer.ReadVarInt32(); } else { return entityBitBuffer.ReadSignedVarInt32(); } } else { if ( flags & SPROP_UNSIGNED ) { return entityBitBuffer.ReadUBitLong( pSendProp->num_bits() ); } else { return entityBitBuffer.ReadSBitLong( pSendProp->num_bits() ); } } }