mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-21 19:32:30 +00:00
Fix warnings.
This commit is contained in:
parent
f2d4e5f06a
commit
754215066b
2 changed files with 12 additions and 8 deletions
|
@ -340,7 +340,9 @@ void PF_sprint (void)
|
|||
char *s;
|
||||
client_t *client;
|
||||
int entnum;
|
||||
#ifdef QUAKEWORLD
|
||||
int level;
|
||||
#endif
|
||||
|
||||
entnum = G_EDICTNUM(OFS_PARM0);
|
||||
|
||||
|
@ -1517,9 +1519,7 @@ MESSAGE WRITING
|
|||
|
||||
sizebuf_t *WriteDest (void)
|
||||
{
|
||||
int entnum;
|
||||
int dest;
|
||||
edict_t *ent;
|
||||
int dest;
|
||||
|
||||
dest = G_FLOAT(OFS_PARM0);
|
||||
switch (dest)
|
||||
|
@ -1527,17 +1527,21 @@ sizebuf_t *WriteDest (void)
|
|||
case MSG_BROADCAST:
|
||||
return &sv.datagram;
|
||||
|
||||
case MSG_ONE:
|
||||
case MSG_ONE: {
|
||||
#ifdef QUAKEWORLD
|
||||
SV_Error("Shouldn't be at MSG_ONE");
|
||||
return &svs.clients[entnum-1].netchan.message;
|
||||
break;
|
||||
#else
|
||||
int entnum;
|
||||
edict_t *ent;
|
||||
|
||||
ent = PROG_TO_EDICT(pr_global_struct->msg_entity);
|
||||
entnum = NUM_FOR_EDICT(ent);
|
||||
if (entnum < 1 || entnum > svs.maxclients)
|
||||
PR_RunError ("WriteDest: not a client");
|
||||
return &svs.clients[entnum-1].message;
|
||||
#endif
|
||||
}
|
||||
|
||||
case MSG_ALL:
|
||||
return &sv.reliable_datagram;
|
||||
|
|
|
@ -333,9 +333,9 @@ A download message has been received from the server
|
|||
*/
|
||||
void CL_ParseDownload (void)
|
||||
{
|
||||
int size, percent;
|
||||
byte name[1024];
|
||||
int r;
|
||||
int size, percent;
|
||||
char name[1024];
|
||||
int r;
|
||||
|
||||
|
||||
// read the data
|
||||
|
|
Loading…
Reference in a new issue