diff options
Diffstat (limited to 'src/qcommon/files.c')
-rw-r--r-- | src/qcommon/files.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/qcommon/files.c b/src/qcommon/files.c index 10e00f11..16499a0a 100644 --- a/src/qcommon/files.c +++ b/src/qcommon/files.c @@ -3586,13 +3586,13 @@ void FS_Restart( int checksumFeed ) { /* ================= FS_ConditionalRestart -restart if necessary + +Restart if necessary +Return qtrue if restarting due to game directory changed, qfalse otherwise ================= */ qboolean FS_ConditionalRestart(int checksumFeed, qboolean disconnect) { - int retval; - if(fs_gamedirvar->modified) { if(FS_FilenameCompare(lastValidGame, fs_gamedirvar->string) && @@ -3603,13 +3603,8 @@ qboolean FS_ConditionalRestart(int checksumFeed, qboolean disconnect) return qtrue; } else - { fs_gamedirvar->modified = qfalse; - retval = qtrue; - } } - else - retval = qfalse; if(checksumFeed != fs_checksumFeed) FS_Restart(checksumFeed); |