change some comments

master
Eduardo Bart 12 years ago
parent f1cba66b1e
commit 411ac72fdc

@ -65,7 +65,7 @@ function UIPopupMenu:onKeyPress(keyCode, keyboardModifiers, wouldFilter)
return false
end
-- close all menus when the window is resized
-- close all menus when the window is resized
local function onRootGeometryUpdate()
for i,menu in ipairs(displayedMenuList) do
menu:destroy()

@ -117,7 +117,7 @@ void Connection::write(uint8* buffer, uint16 size)
if(m_sendBufferSize + size >= SEND_BUFFER_SIZE && m_sendEvent)
m_sendEvent->execute();
// we can't send right, otherwise we could create tcp congestion
// we can't send the data right away, otherwise we could create tcp congestion
memcpy(m_sendBuffer + m_sendBufferSize, buffer, size);
m_sendBufferSize += size;
@ -180,7 +180,7 @@ void Connection::onConnect(const boost::system::error_code& error)
if(!error) {
m_connected = true;
// disable nagle's algorithm
// disable nagle's algorithm, this make the game play smoother
boost::asio::ip::tcp::no_delay option(true);
m_socket.set_option(option);

@ -45,7 +45,7 @@ void UIMap::draw()
{
drawSelf();
// draw black brounding border
// draw map border
g_painter.setColor(Fw::black);
g_painter.drawBoundingRect(m_mapRect.expanded(1));

Loading…
Cancel
Save