mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
cl_ents.c:
catch and moan about physents overlows (needs more work, but I don't grok the code well enough yet to do more). pmovetst.c: correct a spelling error
This commit is contained in:
parent
dea0a2c08d
commit
d99da515f7
2 changed files with 11 additions and 1 deletions
|
@ -898,6 +898,11 @@ CL_SetSolidEntities (void)
|
|||
pak = &frame->packet_entities;
|
||||
|
||||
for (i = 0; i < pak->num_entities; i++) {
|
||||
if (pmove.numphysent == MAX_PHYSENTS) {
|
||||
Con_Printf ("WARNING: entity physent overflow, email "
|
||||
"quake-devel@lists.sourceforge.net\n");
|
||||
break;
|
||||
}
|
||||
state = &pak->entities[i];
|
||||
|
||||
if (!state->modelindex)
|
||||
|
@ -998,6 +1003,11 @@ CL_SetSolidPlayers (int playernum)
|
|||
pent = pmove.physents + pmove.numphysent;
|
||||
|
||||
for (j = 0, pplayer = predicted_players; j < MAX_CLIENTS; j++, pplayer++) {
|
||||
if (pmove.numphysent == MAX_PHYSENTS) {
|
||||
Con_Printf ("WARNING: player physent overflow, email "
|
||||
"quake-devel@lists.sourceforge.net\n");
|
||||
break;
|
||||
}
|
||||
|
||||
if (!pplayer->active)
|
||||
continue; // not present this frame
|
||||
|
|
|
@ -363,7 +363,7 @@ PM_PlayerMove (vec3_t start, vec3_t end)
|
|||
// trace.startsolid = true;
|
||||
VectorCopy (end, trace.endpos);
|
||||
|
||||
// trace a line through the apropriate clipping hull
|
||||
// trace a line through the appropriate clipping hull
|
||||
PM_RecursiveHullCheck (hull, hull->firstclipnode, 0, 1, start_l, end_l,
|
||||
&trace);
|
||||
|
||||
|
|
Loading…
Reference in a new issue