Noch einige Bugs durch das neue Dateisystem behoben

This commit is contained in:
Yamagi Burmeister 2009-10-04 06:57:04 +00:00
parent e39af72d14
commit 21168ea8ed
3 changed files with 4 additions and 4 deletions

View file

@ -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;
}
}

View file

@ -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);

View file

@ -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