Minor fixes to some previous commits.

* Fixed a bug with storing the protocol version.
* Fixed an issue with text windows cancelling.
* Fixed a typo in the source.
This commit is contained in:
BeniS
2013-01-18 03:23:01 +13:00
parent cf77c2baf3
commit b68df8336a
9 changed files with 18 additions and 16 deletions

View File

@@ -110,11 +110,11 @@ void Protocol::internalRecvHeader(uint8* buffer, uint16 size)
{
// read message size
m_inputMessage->fillBuffer(buffer, size);
uint16 reamaningSize = m_inputMessage->readSize();
uint16 remainingSize = m_inputMessage->readSize();
// read reamaning message data
// read remaining message data
if(m_connection)
m_connection->read(reamaningSize, std::bind(&Protocol::internalRecvData, asProtocol(), std::placeholders::_1, std::placeholders::_2));
m_connection->read(remainingSize, std::bind(&Protocol::internalRecvData, asProtocol(), std::placeholders::_1, std::placeholders::_2));
}
void Protocol::internalRecvData(uint8* buffer, uint16 size)