From 5086b776608e5ae27714b87cce8c4fcc74ead201 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Tue, 23 Feb 2010 17:54:26 +0000 Subject: CVAR_FILES flag now applies only to files loaded by refresh. Added ‘r_reload’ command to be used in place of ‘fs_restart’ to flush refresh model and texture caches. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/files.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source/files.c') diff --git a/source/files.c b/source/files.c index dfc310e..6257dea 100644 --- a/source/files.c +++ b/source/files.c @@ -2446,8 +2446,6 @@ static void setup_gamedir( void ) { // this var is used by the game library to find it's home directory Cvar_FullSet( "fs_gamedir", fs_gamedir, CVAR_ROM, FROM_CODE ); - - cvar_modified &= ~CVAR_FILES; } qboolean FS_SafeToRestart( void ) { @@ -2473,9 +2471,6 @@ FS_NeedRestart ================ */ qboolean FS_NeedRestart( void ) { - if( cvar_modified & CVAR_FILES ) { - return qtrue; - } if( fs_game->latched_string ) { return qtrue; } @@ -2612,7 +2607,7 @@ void FS_Init( void ) { fs_debug = Cvar_Get( "fs_debug", "0", 0 ); #endif - fs_game = Cvar_Get( "game", "", CVAR_FILES|CVAR_LATCH|CVAR_SERVERINFO ); + fs_game = Cvar_Get( "game", "", CVAR_LATCH|CVAR_SERVERINFO ); // start up with baseq2 by default setup_basedir(); -- cgit v1.2.3