summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-06-11 15:53:23 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-06-11 15:53:23 +0000
commit698c7913e8e56649cb413b155bc9381e91f10bbe (patch)
treec5cb81a12a63c113d9c24c7a680f0154cbbf4888 /source/sv_init.c
parent47dead035e7bb52e9b360af6d9f13cdf5623b97f (diff)
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.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c9
1 files changed, 0 insertions, 9 deletions
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" );