diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-04-10 15:37:25 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-04-10 15:37:25 +0000 |
commit | ce41605441c55110aa523250987b50235261a6f6 (patch) | |
tree | 9a71b593f93e5ba817a94d40a3a04c0ec379b3d4 /code/server | |
parent | 92f7f50f61dffdfa44d4908f7dc662eee9eedcdf (diff) | |
download | ioquake3-aero-ce41605441c55110aa523250987b50235261a6f6.tar.gz ioquake3-aero-ce41605441c55110aa523250987b50235261a6f6.zip |
Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1309 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_ccmds.c | 7 | ||||
-rw-r--r-- | code/server/sv_client.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/code/server/sv_ccmds.c b/code/server/sv_ccmds.c index 18dcfbc..e2bcd93 100644 --- a/code/server/sv_ccmds.c +++ b/code/server/sv_ccmds.c @@ -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); diff --git a/code/server/sv_client.c b/code/server/sv_client.c index 5345b0e..8230036 100644 --- a/code/server/sv_client.c +++ b/code/server/sv_client.c @@ -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 ) ) { |