summaryrefslogtreecommitdiff
path: root/src/cl_download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_download.c')
-rw-r--r--src/cl_download.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cl_download.c b/src/cl_download.c
index 9c36304..6562030 100644
--- a/src/cl_download.c
+++ b/src/cl_download.c
@@ -517,7 +517,7 @@ void CL_RequestNextDownload( void ) {
if( cls.state != ca_connected && cls.state != ca_loading )
return;
- if( !allow_download->integer || NET_IsLocalAddress( &cls.serverAddress ) ) {
+ if( allow_download->integer <= 0 || NET_IsLocalAddress( &cls.serverAddress ) ) {
if( precache_check <= PRECACHE_MAP ) {
CL_RegisterModels();
}
@@ -697,6 +697,11 @@ static void CL_Download_f( void ) {
return;
}
+ if( allow_download->integer == -1 ) {
+ Com_Printf( "Downloads are permanently disabled.\n" );
+ return;
+ }
+
if( Cmd_Argc() != 2 ) {
Com_Printf( "Usage: download <filename>\n" );
return;