2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-17 17:17:56 +03:00

Merge pull request #284 from WPMGPRoSToTeMa/master

Fixed "Malformed packet size" on packets from server to client
This commit is contained in:
theAsmodai 2016-12-22 11:25:57 +03:00 committed by GitHub
commit 5a4fef3d0a

View File

@ -275,7 +275,11 @@ 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)
{ {
#ifdef REHLDS_FIXES
byte send_buf[MAX_UDP_PACKET];
#else
byte send_buf[NET_MAX_MESSAGE]; byte send_buf[NET_MAX_MESSAGE];
#endif
qboolean send_reliable; qboolean send_reliable;
qboolean send_reliable_fragment; qboolean send_reliable_fragment;
qboolean send_resending = false; qboolean send_resending = false;