Added more command descriptions
diff --git a/src/engine/server/serverCcmds.cpp b/src/engine/server/serverCcmds.cpp
index 9409582..caa26b9 100644
--- a/src/engine/server/serverCcmds.cpp
+++ b/src/engine/server/serverCcmds.cpp
@@ -1801,18 +1801,18 @@ void idServerCcmdsSystemLocal::AddOperatorCommands( void )
cmdSystem->AddCommand( "cheater", &idServerOACSSystemLocal::ExtendedRecordSetCheater_f, "Server-side command to set a client's cheater label cheater <client> <label> where label is 0 for honest players, and >= 1 for cheaters" );
cmdSystem->AddCommand( "userinfo", &idServerCcmdsSystemLocal::UserInfo_f, "List user information" );
- cmdSystem->AddCommand( "startmatch", &idServerCcmdsSystemLocal::StartMatch_f, "" );
- cmdSystem->AddCommand( "stopmatch", &idServerCcmdsSystemLocal::StopMatch_f, "" );
- cmdSystem->AddCommand( "addclanmatch", &idServerCcmdsSystemLocal::AddClanMatch_f, "" );
- cmdSystem->AddCommand( "addusermatch", &idServerCcmdsSystemLocal::AddUserMatch_f, "" );
- cmdSystem->AddCommand( "addrefereematch", &idServerCcmdsSystemLocal::AddRefereeMatch_f, "" );
- cmdSystem->AddCommand( "matchinfo", &idServerCcmdsSystemLocal::MatchInfo_f, "" );
- cmdSystem->AddCommand( "addip", &idServerCcmdsSystemLocal::AddIP_f, "" );
- cmdSystem->AddCommand( "banlist", &idServerCcmdsSystemLocal::BanList_f, "" );
- cmdSystem->AddCommand( "unban", &idServerCcmdsSystemLocal::UnBan_f, "" );
-
- cmdSystem->AddCommand( "csstats_players", &idServerCcmdsSystemLocal::StatsPlayers_f, "" );
- cmdSystem->AddCommand( "csstats_player", &idServerCcmdsSystemLocal::StatsPlayer_f, "" );
+ cmdSystem->AddCommand( "startmatch", &idServerCcmdsSystemLocal::StartMatch_f, "Starts a the match." );
+ cmdSystem->AddCommand( "stopmatch", &idServerCcmdsSystemLocal::StopMatch_f, "Stops the match." );
+ cmdSystem->AddCommand( "addclanmatch", &idServerCcmdsSystemLocal::AddClanMatch_f, "Adding a clan match." );
+ cmdSystem->AddCommand( "addusermatch", &idServerCcmdsSystemLocal::AddUserMatch_f, "Adding a user in the match." );
+ cmdSystem->AddCommand( "addrefereematch", &idServerCcmdsSystemLocal::AddRefereeMatch_f, "Adding a referee in the match." );
+ cmdSystem->AddCommand( "matchinfo", &idServerCcmdsSystemLocal::MatchInfo_f, "Match information" );
+ cmdSystem->AddCommand( "addip", &idServerCcmdsSystemLocal::AddIP_f, "Banning a user IP and user GUID." );
+ cmdSystem->AddCommand( "banlist", &idServerCcmdsSystemLocal::BanList_f, "Banning a user." );
+ cmdSystem->AddCommand( "unban", &idServerCcmdsSystemLocal::UnBan_f, "Unbanning a user" );
+
+ cmdSystem->AddCommand( "csstats_players", &idServerCcmdsSystemLocal::StatsPlayers_f, "Statistics for the players." );
+ cmdSystem->AddCommand( "csstats_player", &idServerCcmdsSystemLocal::StatsPlayer_f, "Statistics for the one specific player." );
if( com_dedicated->integer )
diff --git a/src/engine/server/serverCommunity.cpp b/src/engine/server/serverCommunity.cpp
index ab84b6e..0b70d77 100644
--- a/src/engine/server/serverCommunity.cpp
+++ b/src/engine/server/serverCommunity.cpp
@@ -834,7 +834,7 @@ void idServerCommunityServer::addMatchUser( valueType* user_name )
return;
}
- user_p = ( user_t* )Com_FindHashData( hash_users, user_name );
+ user_p = static_cast< user_t* >( Com_FindHashData( hash_users, user_name ) );
if( user_p == nullptr )
{
@@ -883,7 +883,7 @@ void idServerCommunityServer::addMatchReferee( valueType* user_name )
return;
}
- user_p = ( user_t* )Com_FindHashData( hash_users, user_name );
+ user_p = static_cast< user_t* >( Com_FindHashData( hash_users, user_name ) );
if( user_p == nullptr )
{
diff --git a/src/engine/server/serverGame.cpp b/src/engine/server/serverGame.cpp
index f79a686..9922112 100644
--- a/src/engine/server/serverGame.cpp
+++ b/src/engine/server/serverGame.cpp
@@ -524,7 +524,7 @@ void idServerGameSystemLocal::ShutdownGameProgs( void )
if( sv_newGameShlib->string[0] )
{
fileSystem->Rename( sv_newGameShlib->string, "sgameAMD64" DLL_EXT );
- cvarSystem->Set( "sv_newGameShlib", "" );
+ cvarSystem->Set( "sv_newGameShlib", "Replace game module library after map restart." );
}
}
diff --git a/src/engine/soundSystem/sndSystem_load.cpp b/src/engine/soundSystem/sndSystem_load.cpp
index 941d4ec..810bef8 100644
--- a/src/engine/soundSystem/sndSystem_load.cpp
+++ b/src/engine/soundSystem/sndSystem_load.cpp
@@ -129,10 +129,10 @@ static bool S_InitModule( void )
{
valueType fn[1024];
- s_module = cvarSystem->Get( "s_module", "AL", CVAR_ARCHIVE, "" );
+ s_module = cvarSystem->Get( "s_module", "AL", CVAR_ARCHIVE, "Name of the sound system module." );
Com_Printf( "using sound module %s\n", s_module->string );
- sprintf( fn, "%s/soundSystem%s." ARCH_STRING DLL_EXT, idsystem->Cwd(), s_module->string );
+ ::sprintf( fn, "%s/soundSystem%s." ARCH_STRING DLL_EXT, idsystem->Cwd(), s_module->string );
if( ( openALModule = SDL_LoadObject( fn ) ) == 0 )
{
@@ -189,7 +189,7 @@ void idSoundSystemLocal::Init( void )
Com_Printf( "------ Initializing Sound -----\n" );
- cv = cvarSystem->Get( "s_initsound", "1", 0, "Toggle weather sound is initialized or not (on next game) " );
+ cv = cvarSystem->Get( "s_initsound", "1", 0, "Toggle weather sound is initialized or not (on next game)" );
if( !cv->integer )
{
Com_Printf( "not initializing.\n" );
@@ -199,7 +199,8 @@ void idSoundSystemLocal::Init( void )
codec_init();
- cv = cvarSystem->Get( "s_usemodule", "1", CVAR_ARCHIVE, "" );
+ cv = cvarSystem->Get( "s_usemodule", "1", CVAR_ARCHIVE, "Toggle using a sound system module." );
+
if( !cv->integer )
{
useBuiltin = true;
@@ -207,6 +208,7 @@ void idSoundSystemLocal::Init( void )
else
{
useBuiltin = false;
+
if( !S_InitModule() )
{
useBuiltin = true;
GitHub
sha: 594420a2