This commit is contained in:
Steve Checkoway
2004-05-25 10:39:23 +00:00
parent f817d4bdb2
commit 115b218566
+1 -9
View File
@@ -12,7 +12,6 @@
*/
#include "global.h"
#include <cstring>
#include "NetworkSyncManager.h"
#include "ProfileManager.h"
#include "ezsockets.h"
@@ -94,7 +93,7 @@ void NetworkSyncManager::PostStartUp(CString ServerIP)
LOG->Info("CNCHECKPOINT");
NetPlayerClient->ReadData((char*)&m_ServerVersion, 4);
LOG->Info("CNCHECKPOINT:%d",NetPlayerClient->inBuffer.length());
LOG->Info("CNCHECKPOINT:%d", int(NetPlayerClient->inBuffer.length()));
// If network play is desired and the connection works,
// halt until we know what server version we're dealing with
@@ -130,14 +129,10 @@ void NetworkSyncManager::StartUp()
CString ServerIP;
if( GetCommandlineArgument( "netip", &ServerIP ) )
{
PostStartUp(ServerIP);
}
else if( GetCommandlineArgument( "listen" ) )
{
PostStartUp("LISTEN");
}
}
bool NetworkSyncManager::Connect(const CString& addy, unsigned short port)
@@ -341,7 +336,6 @@ void NetworkSyncManager::DisplayStartupStatus()
case 0:
//Networking wasn't attepmpted
return;
break;
case 1:
sMessage = "Connect to server successful.";
break;
@@ -354,9 +348,7 @@ void NetworkSyncManager::DisplayStartupStatus()
void NetworkSyncManager::Update(float fDeltaTime)
{
}
//Global and accessable from anywhere
NetworkSyncManager *NSMAN;