2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-04 02:55:50 +03:00

Fixed "Malformed packet size" on packets from server to client

This commit is contained in:
WPMGPRoSToTeMa 2016-12-22 05:07:00 +03:00
parent 97b072a9f6
commit ee4026ec4e

View File

@ -275,14 +275,18 @@ void Netchan_UpdateFlow(netchan_t *chan)
void Netchan_Transmit(netchan_t *chan, int length, byte *data) void Netchan_Transmit(netchan_t *chan, int length, byte *data)
{ {
byte send_buf[NET_MAX_MESSAGE]; #ifdef REHLDS_FIXES
qboolean send_reliable; byte send_buf[MAX_UDP_PACKET];
qboolean send_reliable_fragment; #else
qboolean send_resending = false; byte send_buf[NET_MAX_MESSAGE];
unsigned w1, w2; #endif
qboolean send_reliable;
qboolean send_reliable_fragment;
qboolean send_resending = false;
unsigned w1, w2;
int i, j; int i, j;
float fRate; float fRate;
sizebuf_t sb_send; sizebuf_t sb_send;
sb_send.data = send_buf; sb_send.data = send_buf;