Eine Warnungen ruhiggestellt

This commit is contained in:
Yamagi Burmeister 2009-10-04 09:42:02 +00:00
parent 09d0000fa9
commit 1538852650
2 changed files with 5 additions and 5 deletions

View file

@ -1030,7 +1030,7 @@ void SV_Shutdown (char *finalmsg, qboolean reconnect)
// free current level
if (sv.demofile)
FS_FCloseFile (sv.demofile);
FS_FCloseFile ((size_t)sv.demofile);
memset (&sv, 0, sizeof(sv));
Com_SetServerState (sv.state);
@ -1040,7 +1040,7 @@ void SV_Shutdown (char *finalmsg, qboolean reconnect)
if (svs.client_entities)
Z_Free (svs.client_entities);
if (svs.demofile)
FS_FCloseFile (svs.demofile);
FS_FCloseFile ((size_t)svs.demofile);
memset (&svs, 0, sizeof(svs));
}

View file

@ -438,7 +438,7 @@ void SV_DemoCompleted (void)
{
if (sv.demofile)
{
FS_FCloseFile (sv.demofile);
FS_FCloseFile ((size_t)sv.demofile);
sv.demofile = NULL;
}
SV_Nextserver ();
@ -502,7 +502,7 @@ void SV_SendClientMessages (void)
else
{
// get the next message
r = FS_FRead (&msglen, 4, 1, sv.demofile);
r = FS_FRead (&msglen, 4, 1, (size_t)sv.demofile);
if (r != 4)
{
SV_DemoCompleted ();
@ -516,7 +516,7 @@ void SV_SendClientMessages (void)
}
if (msglen > MAX_MSGLEN)
Com_Error (ERR_DROP, "SV_SendClientMessages: msglen > MAX_MSGLEN");
r = FS_FRead (msgbuf, msglen, 1, sv.demofile);
r = FS_FRead (msgbuf, msglen, 1, (size_t)sv.demofile);
if (r != msglen)
{
SV_DemoCompleted ();