Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data.
This commit is contained in:
1 parent
512b260629
commit
78a82bcba2
10 files changed
+85
-30
No files matched your search
@@ -740,8 +740,11 @@ void SV_AddOperatorCommands( void ) {
|
||||
Cmd_AddCommand ("heartbeat", SV_Heartbeat_f);
|
||||
Cmd_AddCommand ("kick", SV_Kick_f);
|
||||
#ifndef STANDALONE
|
||||
Cmd_AddCommand ("banUser", SV_Ban_f);
|
||||
Cmd_AddCommand ("banClient", SV_BanNum_f);
|
||||
if(!Cvar_VariableIntegerValue("com_standalone"))
|
||||
{
|
||||
Cmd_AddCommand ("banUser", SV_Ban_f);
|
||||
Cmd_AddCommand ("banClient", SV_BanNum_f);
|
||||
}
|
||||
#endif
|
||||
Cmd_AddCommand ("clientkick", SV_KickNum_f);
|
||||
Cmd_AddCommand ("status", SV_Status_f);
|
||||
|
||||
@@ -82,8 +82,11 @@ void SV_GetChallenge( netadr_t from ) {
|
||||
}
|
||||
|
||||
#ifdef STANDALONE
|
||||
challenge->pingTime = svs.time;
|
||||
NET_OutOfBandPrint( NS_SERVER, from, "challengeResponse %i", challenge->challenge );
|
||||
if(Cvar_VariableIntegerValue("com_standalone"))
|
||||
{
|
||||
challenge->pingTime = svs.time;
|
||||
NET_OutOfBandPrint( NS_SERVER, from, "challengeResponse %i", challenge->challenge );
|
||||
}
|
||||
#else
|
||||
// if they are on a lan address, send the challengeResponse immediately
|
||||
if ( Sys_IsLANAddress( from ) ) {
|
||||
|
||||
Reference in new issue
Block a user