- Timestamp:
- 06/05/18 16:52:41 (7 years ago)
- Location:
- ps/trunk/source/network
- Files:
-
- 2 edited
-
NetClient.cpp (modified) (1 diff)
-
NetClientTurnManager.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/network/NetClient.cpp
r21832 r21837 182 182 void CNetClient::DestroyConnection() 183 183 { 184 // Send network messages from the current frame before connection is destroyed.184 // Attempt to send network messages from the current frame before connection is destroyed. 185 185 if (m_ClientTurnManager) 186 186 { 187 m_ClientTurnManager->OnDestroyConnection(); // End sending of commands for scheduled turn.188 Flush(); // Make sure the messages are sent.187 m_ClientTurnManager->OnDestroyConnection(); 188 Flush(); 189 189 } 190 190 SAFE_DELETE(m_Session); -
ps/trunk/source/network/NetClientTurnManager.cpp
r21830 r21837 96 96 void CNetClientTurnManager::OnDestroyConnection() 97 97 { 98 NotifyFinishedOwnCommands(m_CurrentTurn + COMMAND_DELAY); 98 // Attempt to flush messages before leaving. 99 // Notice the sending is not reliable and rarely makes it to the Server. 100 if (m_NetClient.GetCurrState() == NCS_INGAME) 101 NotifyFinishedOwnCommands(m_CurrentTurn + COMMAND_DELAY); 99 102 } 100 103
Note:
See TracChangeset
for help on using the changeset viewer.
