diff --git a/modules/core_widgets/uipopupmenu.lua b/modules/core_widgets/uipopupmenu.lua index 8ba2ae41..3b8d9e07 100644 --- a/modules/core_widgets/uipopupmenu.lua +++ b/modules/core_widgets/uipopupmenu.lua @@ -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() diff --git a/src/framework/net/connection.cpp b/src/framework/net/connection.cpp index b6619cb5..3415746f 100644 --- a/src/framework/net/connection.cpp +++ b/src/framework/net/connection.cpp @@ -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); diff --git a/src/otclient/ui/uimap.cpp b/src/otclient/ui/uimap.cpp index a73b10e9..eccd9269 100644 --- a/src/otclient/ui/uimap.cpp +++ b/src/otclient/ui/uimap.cpp @@ -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));