cleanup
This commit is contained in:
@@ -12,7 +12,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include <cstring>
|
|
||||||
#include "NetworkSyncManager.h"
|
#include "NetworkSyncManager.h"
|
||||||
#include "ProfileManager.h"
|
#include "ProfileManager.h"
|
||||||
#include "ezsockets.h"
|
#include "ezsockets.h"
|
||||||
@@ -94,7 +93,7 @@ void NetworkSyncManager::PostStartUp(CString ServerIP)
|
|||||||
LOG->Info("CNCHECKPOINT");
|
LOG->Info("CNCHECKPOINT");
|
||||||
|
|
||||||
NetPlayerClient->ReadData((char*)&m_ServerVersion, 4);
|
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,
|
// If network play is desired and the connection works,
|
||||||
// halt until we know what server version we're dealing with
|
// halt until we know what server version we're dealing with
|
||||||
@@ -130,14 +129,10 @@ void NetworkSyncManager::StartUp()
|
|||||||
CString ServerIP;
|
CString ServerIP;
|
||||||
|
|
||||||
if( GetCommandlineArgument( "netip", &ServerIP ) )
|
if( GetCommandlineArgument( "netip", &ServerIP ) )
|
||||||
{
|
|
||||||
PostStartUp(ServerIP);
|
PostStartUp(ServerIP);
|
||||||
}
|
|
||||||
else if( GetCommandlineArgument( "listen" ) )
|
else if( GetCommandlineArgument( "listen" ) )
|
||||||
{
|
|
||||||
PostStartUp("LISTEN");
|
PostStartUp("LISTEN");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool NetworkSyncManager::Connect(const CString& addy, unsigned short port)
|
bool NetworkSyncManager::Connect(const CString& addy, unsigned short port)
|
||||||
@@ -341,7 +336,6 @@ void NetworkSyncManager::DisplayStartupStatus()
|
|||||||
case 0:
|
case 0:
|
||||||
//Networking wasn't attepmpted
|
//Networking wasn't attepmpted
|
||||||
return;
|
return;
|
||||||
break;
|
|
||||||
case 1:
|
case 1:
|
||||||
sMessage = "Connect to server successful.";
|
sMessage = "Connect to server successful.";
|
||||||
break;
|
break;
|
||||||
@@ -354,9 +348,7 @@ void NetworkSyncManager::DisplayStartupStatus()
|
|||||||
|
|
||||||
void NetworkSyncManager::Update(float fDeltaTime)
|
void NetworkSyncManager::Update(float fDeltaTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Global and accessable from anywhere
|
//Global and accessable from anywhere
|
||||||
NetworkSyncManager *NSMAN;
|
NetworkSyncManager *NSMAN;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user