mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Restart the file system when connected and when the local server has no paks
This commit is contained in:
parent
fee6390281
commit
aa52fe73a5
1 changed files with 9 additions and 3 deletions
|
@ -538,6 +538,7 @@ void CL_ParseGamestate( msg_t *msg ) {
|
|||
entityState_t nullstate;
|
||||
int cmd;
|
||||
char *s;
|
||||
cvar_t *sv_paks;
|
||||
|
||||
UI_CloseConsole();
|
||||
|
||||
|
@ -606,9 +607,14 @@ void CL_ParseGamestate( msg_t *msg ) {
|
|||
// stop recording now so the demo won't have an unnecessary level load at the end.
|
||||
if(cl_autoRecordDemo->integer && clc.demorecording)
|
||||
CL_StopRecord_f();
|
||||
|
||||
// reinitialize the filesystem if the game directory has changed
|
||||
FS_ConditionalRestart( clc.checksumFeed, qfalse );
|
||||
|
||||
if (clc.state == CA_CONNECTED && !Cvar_Get("sv_paks", "", 0)->string[0]) {
|
||||
// Added in 2.30
|
||||
FS_Restart(clc.checksumFeed);
|
||||
} else {
|
||||
// reinitialize the filesystem if the game directory has changed
|
||||
FS_ConditionalRestart(clc.checksumFeed, qfalse);
|
||||
}
|
||||
|
||||
clc.state = CA_LOADING;
|
||||
if (!com_sv_running->integer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue