change some comments
This commit is contained in:
		
							parent
							
								
									f1cba66b1e
								
							
						
					
					
						commit
						411ac72fdc
					
				|  | @ -65,7 +65,7 @@ function UIPopupMenu:onKeyPress(keyCode, keyboardModifiers, wouldFilter) | ||||||
|   return false |   return false | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|   -- close all menus when the window is resized | -- close all menus when the window is resized | ||||||
| local function onRootGeometryUpdate() | local function onRootGeometryUpdate() | ||||||
|   for i,menu in ipairs(displayedMenuList) do |   for i,menu in ipairs(displayedMenuList) do | ||||||
|     menu:destroy() |     menu:destroy() | ||||||
|  |  | ||||||
|  | @ -117,7 +117,7 @@ void Connection::write(uint8* buffer, uint16 size) | ||||||
|     if(m_sendBufferSize + size >= SEND_BUFFER_SIZE && m_sendEvent) |     if(m_sendBufferSize + size >= SEND_BUFFER_SIZE && m_sendEvent) | ||||||
|         m_sendEvent->execute(); |         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); |     memcpy(m_sendBuffer + m_sendBufferSize, buffer, size); | ||||||
|     m_sendBufferSize += size; |     m_sendBufferSize += size; | ||||||
| 
 | 
 | ||||||
|  | @ -180,7 +180,7 @@ void Connection::onConnect(const boost::system::error_code& error) | ||||||
|     if(!error) { |     if(!error) { | ||||||
|         m_connected = true; |         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); |         boost::asio::ip::tcp::no_delay option(true); | ||||||
|         m_socket.set_option(option); |         m_socket.set_option(option); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -45,7 +45,7 @@ void UIMap::draw() | ||||||
| { | { | ||||||
|     drawSelf(); |     drawSelf(); | ||||||
| 
 | 
 | ||||||
|     // draw black brounding border
 |     // draw map border
 | ||||||
|     g_painter.setColor(Fw::black); |     g_painter.setColor(Fw::black); | ||||||
|     g_painter.drawBoundingRect(m_mapRect.expanded(1)); |     g_painter.drawBoundingRect(m_mapRect.expanded(1)); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Eduardo Bart
						Eduardo Bart