mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 14:01:26 +00:00
sv_main.c (SV_Init): use a return instead of a dummy assignment after Sys_Error to silence compiler
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1442 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e2d1800b12
commit
c671916fc7
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ void SV_Init (void)
|
|||
default:
|
||||
Sys_Error ("Bad protocol version request %i. Accepted values: %i, %i, %i.",
|
||||
sv_protocol, PROTOCOL_NETQUAKE, PROTOCOL_FITZQUAKE, PROTOCOL_RMQ);
|
||||
p = "Unknown";
|
||||
return; /* silence compiler */
|
||||
}
|
||||
Sys_Printf ("Server using protocol %i (%s)\n", sv_protocol, p);
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg)
|
|||
// find the client's PVS
|
||||
VectorAdd (clent->v.origin, clent->v.view_ofs, org);
|
||||
pvs = SV_FatPVS (org, sv.worldmodel);
|
||||
|
||||
|
||||
// send over all entities (excpet the client) that touch the pvs
|
||||
ent = NEXT_EDICT(sv.edicts);
|
||||
for (e=1 ; e<sv.num_edicts ; e++, ent = NEXT_EDICT(ent))
|
||||
|
|
Loading…
Reference in a new issue