cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user