mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
Eine Warnungen ruhiggestellt
This commit is contained in:
parent
09d0000fa9
commit
1538852650
2 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue