mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 13:20:34 +00:00
fix sv.demofile/svs.demofile type/treatment
This commit is contained in:
parent
4bef586e67
commit
2ad4255187
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -467,7 +467,7 @@ SV_DemoCompleted(void)
|
|||
if (sv.demofile)
|
||||
{
|
||||
FS_FCloseFile((fileHandle_t)sv.demofile);
|
||||
sv.demofile = NULL;
|
||||
sv.demofile = 0;
|
||||
}
|
||||
|
||||
SV_Nextserver();
|
||||
|
|
Loading…
Reference in a new issue