1
0

Fixed a few MSVC warnings.

This commit is contained in:
madmaxoft
2014-01-06 22:22:33 +01:00
parent db978fc687
commit 9c8af58b75
11 changed files with 12 additions and 16 deletions

View File

@@ -877,7 +877,7 @@ void cProtocol132::SendCompass(const cWorld & a_World)
void cProtocol132::SendEncryptionKeyRequest(void)
{
cCSLock Lock(m_CSPacket);
WriteByte((char)0xfd);
WriteByte(0xfd);
WriteString(cRoot::Get()->GetServer()->GetServerID());
WriteShort((short)m_ServerPublicKey.size());
SendData(m_ServerPublicKey.data(), m_ServerPublicKey.size());
@@ -925,7 +925,7 @@ void cProtocol132::HandleEncryptionKeyResponse(const AString & a_EncKey, const A
{
// Send encryption key response:
cCSLock Lock(m_CSPacket);
WriteByte((char)0xfc);
WriteByte(0xfc);
WriteShort(0);
WriteShort(0);
Flush();