summaryrefslogtreecommitdiff
path: root/source/files.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-02-23 17:54:26 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-02-23 17:54:26 +0000
commit5086b776608e5ae27714b87cce8c4fcc74ead201 (patch)
tree6a7c32bd877d603d6c1bc818f5e5f94711115f70 /source/files.c
parent49d62599928630204e44d9ceb11d5a8a3fe88280 (diff)
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.
Diffstat (limited to 'source/files.c')
-rw-r--r--source/files.c7
1 files changed, 1 insertions, 6 deletions
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();