warnings
This commit is contained in:
@@ -109,12 +109,12 @@ void NetworkSyncManager::CloseConnection()
|
|||||||
void NetworkSyncManager::PostStartUp(const CString& ServerIP)
|
void NetworkSyncManager::PostStartUp(const CString& ServerIP)
|
||||||
{
|
{
|
||||||
CString sAddress;
|
CString sAddress;
|
||||||
int iPort;
|
short iPort;
|
||||||
|
|
||||||
int cLoc = ServerIP.Find( ":" );
|
int cLoc = ServerIP.Find( ":" );
|
||||||
if ( ServerIP.Find( ":" ) > 0 )
|
if ( ServerIP.Find( ":" ) > 0 )
|
||||||
{
|
{
|
||||||
iPort = atoi( ServerIP.substr( cLoc + 1 ).c_str() );
|
iPort = (short) atoi( ServerIP.substr( cLoc + 1 ).c_str() );
|
||||||
sAddress = ServerIP.substr( 0, cLoc );
|
sAddress = ServerIP.substr( 0, cLoc );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user