mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix r3155 fuckup :)
git-svn-id: https://svn.eduke32.com/eduke32@3158 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
74c46a7b3d
commit
2cea43f150
1 changed files with 4 additions and 4 deletions
|
@ -974,15 +974,15 @@ void Net_ParsePacketCommon(uint8_t *pbuf, int32_t packbufleng, int32_t serverpac
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Version Packets
|
||||
|
||||
// TODO: switch this around so the client sends their version to the server for
|
||||
// verification, instead of the other way around like it is now
|
||||
void Net_SendVersion(ENetPeer *client)
|
||||
{
|
||||
if (!g_netServer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
*(uint16_t *)&buf[0] = PACKET_VERSION;
|
||||
buf[2] = BYTEVERSION;
|
||||
buf[0] = PACKET_VERSION;
|
||||
*(uint16_t *)&buf[1] = BYTEVERSION;
|
||||
// XXX: s_buildDate is outdated and useless; uint8 is not enough :/
|
||||
buf[3] = (uint8_t)atoi(s_buildDate);
|
||||
buf[4] = myconnectindex;
|
||||
|
|
Loading…
Reference in a new issue