mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Noch einige Bugs durch das neue Dateisystem behoben
This commit is contained in:
parent
e39af72d14
commit
21168ea8ed
3 changed files with 4 additions and 4 deletions
|
@ -2146,7 +2146,7 @@ static void Create_Savestrings (void)
|
|||
else
|
||||
{
|
||||
FS_Read (m_savestrings[i], sizeof(m_savestrings[i]), (size_t)f);
|
||||
fclose (f);
|
||||
FS_FCloseFile (f);
|
||||
m_savevalid[i] = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -319,7 +319,7 @@ void SV_ReadLevelFile (void)
|
|||
}
|
||||
FS_Read (sv.configstrings, sizeof(sv.configstrings), (size_t)f);
|
||||
CM_ReadPortalState (f);
|
||||
fclose (f);
|
||||
FS_FCloseFile (f);
|
||||
|
||||
Com_sprintf (name, sizeof(name), "%s/save/current/%s.sav", FS_Gamedir(), sv.name);
|
||||
ge->ReadLevel (name);
|
||||
|
@ -430,7 +430,7 @@ void SV_ReadServerFile (void)
|
|||
// these will be things like coop, skill, deathmatch, etc
|
||||
while (1)
|
||||
{
|
||||
if (!fread (name, 1, sizeof(name), f))
|
||||
if (!FS_Read (name, 1, sizeof(name), f))
|
||||
break;
|
||||
FS_Read (string, sizeof(string), (size_t)f);
|
||||
Com_DPrintf ("Set %s = %s\n", name, string);
|
||||
|
|
|
@ -177,7 +177,7 @@ void SV_SpawnServer (char *server, char *spawnpoint, server_state_t serverstate,
|
|||
|
||||
Com_DPrintf ("SpawnServer: %s\n",server);
|
||||
if (sv.demofile)
|
||||
fclose (sv.demofile);
|
||||
FS_FCloseFile (sv.demofile);
|
||||
|
||||
svs.spawncount++; // any partially connected client will be
|
||||
// restarted
|
||||
|
|
Loading…
Reference in a new issue