fix sv.demofile/svs.demofile type/treatment

This commit is contained in:
svdijk 2013-05-13 21:00:50 +02:00
parent 4bef586e67
commit 2ad4255187
3 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@ typedef struct
byte multicast_buf[MAX_MSGLEN];
/* demo server information */
FILE *demofile;
fileHandle_t demofile;
qboolean timedemo; /* don't time sync */
} server_t;

View file

@ -700,7 +700,7 @@ SV_Shutdown(char *finalmsg, qboolean reconnect)
if (svs.demofile)
{
FS_FCloseFile((fileHandle_t)svs.demofile);
fclose(svs.demofile);
}
memset(&svs, 0, sizeof(svs));

View file

@ -467,7 +467,7 @@ SV_DemoCompleted(void)
if (sv.demofile)
{
FS_FCloseFile((fileHandle_t)sv.demofile);
sv.demofile = NULL;
sv.demofile = 0;
}
SV_Nextserver();