engine: net_chan: explicitly convert qboolean to uint before right shift to 31 bits

This commit is contained in:
Alibek Omarov
2026-04-05 05:22:27 +05:00
parent 6179bef160
commit b68e71abfd

View File

@@ -1658,7 +1658,7 @@ void Netchan_TransmitBits( netchan_t *chan, int length, const byte *data )
MSG_Init( &send, "NetSend", send_buf, sizeof( send_buf ));
// prepare the packet header
w1 = chan->outgoing_sequence | (send_reliable << 31);
w1 = chan->outgoing_sequence | (((uint)send_reliable ) << 31);
w2 = chan->incoming_sequence | (chan->incoming_reliable_sequence << 31);
send_reliable_fragment = false;