From 698c7913e8e56649cb413b155bc9381e91f10bbe Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 11 Jun 2010 15:53:23 +0000 Subject: Fixed gamedir not being changed properly when connecting to a server. Forbid changing gamedir at all while connected to a server. Automatically restart filesystem when user changes gamedir while disconnected. Killed FS_NeedRestart and FS_SafeToRestart. --- source/sv_init.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source/sv_init.c') diff --git a/source/sv_init.c b/source/sv_init.c index 339ac4b..1c0d90f 100644 --- a/source/sv_init.c +++ b/source/sv_init.c @@ -188,15 +188,6 @@ void SV_InitGame( qboolean ismvd ) { Cvar_Reset( sv_recycle ); #endif - // restart filesystem now - if( FS_NeedRestart() ) { -#if USE_CLIENT - CL_RestartFilesystem( qfalse ); -#else - FS_Restart( qfalse ); -#endif - } - if( ismvd ) { Cvar_Set( "deathmatch", "1" ); Cvar_Set( "coop", "0" ); -- cgit v1.2.3