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:
Bill Currie 2001-11-25 23:25:53 +00:00
parent dea0a2c08d
commit d99da515f7
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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);