Skip to content

Commit

Permalink
Improve handling of huge entities in SV_FindTouchedLeafs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Mar 22, 2024
1 parent 51e59c4 commit 2a96fde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Quake/world.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,13 @@ void SV_FindTouchedLeafs (edict_t *ent, mnode_t *node)
if (node->contents == CONTENTS_SOLID)
return;

if (ent->num_leafs == MAX_ENT_LEAFS)
return;

// add an efrag if the node is a leaf

if ( node->contents < 0)
{
if (ent->num_leafs == MAX_ENT_LEAFS)
return;

leaf = (mleaf_t *)node;
leafnum = leaf - sv.worldmodel->leafs - 1;

Expand Down

0 comments on commit 2a96fde

Please sign in to comment.