Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data.

This commit is contained in:
Thilo Schulz 2008-04-10 15:37:25 +00:00
parent 512b260629
commit 78a82bcba2
10 changed files with 85 additions and 30 deletions

View file

@ -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 ) ) {