Start server as public
diff --git a/src/engine/framework/Network.cpp b/src/engine/framework/Network.cpp
index 58e0758..3385506 100644
--- a/src/engine/framework/Network.cpp
+++ b/src/engine/framework/Network.cpp
@@ -1842,7 +1842,7 @@ sint idNetworkSystemLocal::ConnectTCP( valueType* s_host_port )
::strcpy( buffer, s_host_port );
- s_server = strtok( buffer, ":\n\0" );
+ s_server = ::strtok( buffer, ":\n\0" );
if( s_server == nullptr )
{
Com_Printf( "Error parsing server string %s does not have port\n", s_host_port );
@@ -1885,7 +1885,7 @@ sint idNetworkSystemLocal::ConnectTCP( valueType* s_host_port )
if( connect( sock, ( struct sockaddr* )&address, sizeof( address ) ) == SOCKET_ERROR )
{
err = socketError;
- Com_Printf( "NET_OpenSocks: connect: %s\n", ErrorString() );
+ Com_Printf( "idNetworkSystemLocal::ConnectTCP: connect: %s\n", ErrorString() );
close( sock );
return -1;
}
diff --git a/src/engine/server/serverInit.cpp b/src/engine/server/serverInit.cpp
index e2adc02..42bd3f9 100644
--- a/src/engine/server/serverInit.cpp
+++ b/src/engine/server/serverInit.cpp
@@ -1126,9 +1126,9 @@ void idServerInitSystemLocal::Init( void )
sv_showAverageBPS = cvarSystem->Get( "sv_showAverageBPS", "0", 0, "BSP Network debugging" ); // NERVE - SMF - net debugging
- sv_cs_ServerType = cvarSystem->Get( "sv_cs_ServerType", "1", 0, "Setup server type for the community server. 0: public, 1: public-registered, 2: private." );
+ sv_cs_ServerType = cvarSystem->Get( "sv_cs_ServerType", "0", 0, "Setup server type for the community server. 0: public, 1: public-registered, 2: private." );
sv_cs_Salt = cvarSystem->Get( "sv_cs_Salt", "12345", 0, "Community server hash password field." );
- sv_cs_BotLog = cvarSystem->Get( "sv_cs_BotLog", "1", 0, "Log bots in the community server." );
+ sv_cs_BotLog = cvarSystem->Get( "sv_cs_BotLog", "0", 0, "Log bots in the community server." );
sv_cs_MemberColor = cvarSystem->Get( "sv_cs_MemberColor", "0 255 0", 0, "Color of the registered user in the community server." );
sv_cs_UnknownColor = cvarSystem->Get( "sv_cs_UnknownColor", "255 0 0", 0, "Color of the unknown player in the community server." );
sv_cs_PrivateOnlyMSG = cvarSystem->Get( "sv_cs_PrivateOnlyMSG", "This server is for registered users only. Register at " PRODUCT_NAME ".com", 0, "Send private message only to the registered user." );
diff --git a/src/engine/server/serverMain.cpp b/src/engine/server/serverMain.cpp
index 39049b7..168cd18 100644
--- a/src/engine/server/serverMain.cpp
+++ b/src/engine/server/serverMain.cpp
@@ -245,7 +245,7 @@ void idServerMainSystemLocal::SendServerCommand( client_t* cl, pointer fmt, ...
client_t* client;
va_start( argptr, fmt );
- Q_vsnprintf( ( valueType* )message, sizeof( message ), fmt, argptr );
+ Q_vsnprintf( reinterpret_cast< valueType* >( message ), sizeof( message ), fmt, argptr );
va_end( argptr );
// do not forward server command messages that would be too big to clients
GitHub
sha: 251ddbd3