Fix r3155 fuckup :)

git-svn-id: https://svn.eduke32.com/eduke32@3158 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2012-11-13 15:08:10 +00:00
parent 74c46a7b3d
commit 2cea43f150

View file

@ -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;