[Gcblue-commits] gcb_wx/src/graphics tcNetworkView.cpp,1.5,1.6
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-04-08 01:54:20
|
Update of /cvsroot/gcblue/gcb_wx/src/graphics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7286/src/graphics Modified Files: tcNetworkView.cpp Log Message: multiplayer work Index: tcNetworkView.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/graphics/tcNetworkView.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tcNetworkView.cpp 6 Apr 2005 02:19:49 -0000 1.5 --- tcNetworkView.cpp 8 Apr 2005 01:54:11 -0000 1.6 *************** *** 3,7 **** */ /* ! ** Copyright (C) 2004 Dewitt Colclough (de...@tw...) ** All rights reserved. --- 3,7 ---- */ /* ! ** Copyright (C) 2004-2005 Dewitt Colclough (de...@tw...) ** All rights reserved. *************** *** 81,91 **** for (unsigned n=0;n<nConnections;n++) { ! y += 10.0f; std::string connectionStatus = tcMultiplayerInterface::Get()->GetConnectionStatus(n); ! DrawTextR(connectionStatus.c_str(), x, y, defaultFont.get(), color, 8.0f, LEFT_CENTER); } } --- 81,97 ---- for (unsigned n=0;n<nConnections;n++) { ! y += 14.0f; std::string connectionStatus = tcMultiplayerInterface::Get()->GetConnectionStatus(n); ! DrawTextR(connectionStatus.c_str(), x, y, defaultFont.get(), color, 12.0f, LEFT_CENTER); } + wxString s = wxString::Format("Max update: %d", tcMultiplayerInterface::Get()->updateCount); + DrawTextR(s.c_str(), x, (float)statusBoxBounds.y - 15.0f, defaultFont.get(), color, 12.0f, + LEFT_CENTER); + + + } *************** *** 197,200 **** --- 203,211 ---- tcSimState::Get()->SetMultiplayerOff(); } + else if (tcMultiplayerInterface::Get()->GetNumConnections() > 0) + { + chatBox->Print("Disconnect before switching multiplayer mode"); + return; + } else if (mode == MULTIPLAYER_CLIENT) { |