mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 14:11:15 +00:00
msg->oob is actually qboolean (#4010)
This commit is contained in:
parent
40e4a2e5c4
commit
f0e24f9a46
1 changed files with 6 additions and 4 deletions
|
@ -36,7 +36,8 @@ SV_Netchan_Encode
|
||||||
static void SV_Netchan_Encode( client_t *client, msg_t *msg ) {
|
static void SV_Netchan_Encode( client_t *client, msg_t *msg ) {
|
||||||
long reliableAcknowledge, i, index;
|
long reliableAcknowledge, i, index;
|
||||||
byte key, *string;
|
byte key, *string;
|
||||||
int srdc, sbit, soob;
|
int srdc, sbit;
|
||||||
|
qboolean soob;
|
||||||
|
|
||||||
if ( msg->cursize < SV_ENCODE_START ) {
|
if ( msg->cursize < SV_ENCODE_START ) {
|
||||||
return;
|
return;
|
||||||
|
@ -48,7 +49,7 @@ static void SV_Netchan_Encode( client_t *client, msg_t *msg ) {
|
||||||
|
|
||||||
msg->bit = 0;
|
msg->bit = 0;
|
||||||
msg->readcount = 0;
|
msg->readcount = 0;
|
||||||
msg->oob = 0;
|
msg->oob = qfalse;
|
||||||
|
|
||||||
reliableAcknowledge = MSG_ReadLong(msg);
|
reliableAcknowledge = MSG_ReadLong(msg);
|
||||||
|
|
||||||
|
@ -89,14 +90,15 @@ SV_Netchan_Decode
|
||||||
*/
|
*/
|
||||||
static void SV_Netchan_Decode( client_t *client, msg_t *msg ) {
|
static void SV_Netchan_Decode( client_t *client, msg_t *msg ) {
|
||||||
int serverId, messageAcknowledge, reliableAcknowledge;
|
int serverId, messageAcknowledge, reliableAcknowledge;
|
||||||
int i, index, srdc, sbit, soob;
|
int i, index, srdc, sbit;
|
||||||
|
qboolean soob;
|
||||||
byte key, *string;
|
byte key, *string;
|
||||||
|
|
||||||
srdc = msg->readcount;
|
srdc = msg->readcount;
|
||||||
sbit = msg->bit;
|
sbit = msg->bit;
|
||||||
soob = msg->oob;
|
soob = msg->oob;
|
||||||
|
|
||||||
msg->oob = 0;
|
msg->oob = qfalse;
|
||||||
|
|
||||||
serverId = MSG_ReadLong(msg);
|
serverId = MSG_ReadLong(msg);
|
||||||
messageAcknowledge = MSG_ReadLong(msg);
|
messageAcknowledge = MSG_ReadLong(msg);
|
||||||
|
|
Loading…
Reference in a new issue