summaryrefslogtreecommitdiff
path: root/source/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/common.c')
-rw-r--r--source/common.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/common.c b/source/common.c
index 08a9dd0..1ef854b 100644
--- a/source/common.c
+++ b/source/common.c
@@ -1054,7 +1054,7 @@ static void Com_Setenv_f( void ) {
int argc = Cmd_Argc();
if( argc > 2 ) {
- Sys_Setenv( Cmd_Argv( 1 ), Cmd_ArgsFrom( 2 ) );
+ Q_setenv( Cmd_Argv( 1 ), Cmd_ArgsFrom( 2 ) );
} else if( argc == 2 ) {
char *env = getenv( Cmd_Argv( 1 ) );
@@ -1574,8 +1574,12 @@ void Qcommon_Frame( void ) {
all, ev, sv, gm, cl, rf );
}
#endif
+
+ if( cvar_modified & CVAR_FILES ) {
+ Cbuf_ExecuteText( EXEC_NOW, "fs_restart" );
+ }
- cvar_infoModified = 0;
+ cvar_modified = 0;
com_localTime += msec;
com_framenum++;