- Timestamp:
- 06/01/18 19:35:00 (7 years ago)
- Location:
- ps/trunk/source/network
- Files:
-
- 2 edited
-
NetClient.cpp (modified) (2 diffs)
-
NetServer.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/network/NetClient.cpp
r21520 r21832 776 776 JSAutoRequest rq(cx); 777 777 778 if (client->GetCurrState() == NCS_LOADING)779 return true;780 781 778 CClientTimeoutMessage* message = (CClientTimeoutMessage*)event->GetParamRef(); 782 779 JS::RootedValue msg(cx); … … 799 796 JSContext* cx = client->GetScriptInterface().GetContext(); 800 797 JSAutoRequest rq(cx); 801 802 if (client->GetCurrState() == NCS_LOADING)803 return true;804 798 805 799 CClientPerformanceMessage* message = (CClientPerformanceMessage*)event->GetParamRef(); -
ps/trunk/source/network/NetServer.cpp
r21534 r21832 554 554 void CNetServerWorker::CheckClientConnections() 555 555 { 556 if (m_State == SERVER_STATE_LOADING)557 return;558 559 556 // Send messages at most once per second 560 557 std::time_t now = std::time(nullptr); … … 591 588 592 589 // Send to all clients except the affected one 593 // (since that will show the locally triggered warning instead) 590 // (since that will show the locally triggered warning instead). 591 // Also send it to clients that finished the loading screen while 592 // the game is still waiting for other clients to finish the loading screen. 594 593 if (message) 595 594 for (size_t j = 0; j < m_Sessions.size(); ++j) 596 595 { 597 596 if (i != j && ( 598 m_Sessions[j]->GetCurrState() == NSS_PREGAME||597 (m_Sessions[j]->GetCurrState() == NSS_PREGAME && m_State == SERVER_STATE_PREGAME) || 599 598 m_Sessions[j]->GetCurrState() == NSS_INGAME)) 600 599 {
Note:
See TracChangeset
for help on using the changeset viewer.
