mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 04:31:09 +00:00
remove unnecessary fileHandle_t typecasts
This commit is contained in:
parent
2ad4255187
commit
f5a44ff5ae
4 changed files with 6 additions and 6 deletions
|
@ -194,7 +194,7 @@ SV_SpawnServer(char *server, char *spawnpoint, server_state_t serverstate,
|
|||
|
||||
if (sv.demofile)
|
||||
{
|
||||
FS_FCloseFile((fileHandle_t)sv.demofile);
|
||||
FS_FCloseFile(sv.demofile);
|
||||
}
|
||||
|
||||
svs.spawncount++; /* any partially connected client will be restarted */
|
||||
|
|
|
@ -681,7 +681,7 @@ SV_Shutdown(char *finalmsg, qboolean reconnect)
|
|||
/* free current level */
|
||||
if (sv.demofile)
|
||||
{
|
||||
FS_FCloseFile((fileHandle_t)sv.demofile);
|
||||
FS_FCloseFile(sv.demofile);
|
||||
}
|
||||
|
||||
memset(&sv, 0, sizeof(sv));
|
||||
|
|
|
@ -466,7 +466,7 @@ SV_DemoCompleted(void)
|
|||
{
|
||||
if (sv.demofile)
|
||||
{
|
||||
FS_FCloseFile((fileHandle_t)sv.demofile);
|
||||
FS_FCloseFile(sv.demofile);
|
||||
sv.demofile = 0;
|
||||
}
|
||||
|
||||
|
@ -527,7 +527,7 @@ SV_SendClientMessages(void)
|
|||
else
|
||||
{
|
||||
/* get the next message */
|
||||
r = FS_FRead(&msglen, 4, 1, (fileHandle_t)sv.demofile);
|
||||
r = FS_FRead(&msglen, 4, 1, sv.demofile);
|
||||
|
||||
if (r != 4)
|
||||
{
|
||||
|
@ -549,7 +549,7 @@ SV_SendClientMessages(void)
|
|||
"SV_SendClientMessages: msglen > MAX_MSGLEN");
|
||||
}
|
||||
|
||||
r = FS_FRead(msgbuf, msglen, 1, (fileHandle_t)sv.demofile);
|
||||
r = FS_FRead(msgbuf, msglen, 1, sv.demofile);
|
||||
|
||||
if (r != msglen)
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ SV_BeginDemoserver(void)
|
|||
char name[MAX_OSPATH];
|
||||
|
||||
Com_sprintf(name, sizeof(name), "demos/%s", sv.name);
|
||||
FS_FOpenFile(name, (fileHandle_t *)&sv.demofile, FS_READ);
|
||||
FS_FOpenFile(name, &sv.demofile, FS_READ);
|
||||
|
||||
if (!sv.demofile)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue