Fixed a bug with entities not getting correctly lit

This commit is contained in:
cholleme 2003-05-04 21:49:13 +00:00
parent 0947a5cf3b
commit eb3617da47

View file

@ -317,7 +317,7 @@ void R_SplitEntityOnNodePenta (entity_t *ent, mnode_t *node)
}
leaf = (mleaf_t *)node;
leafnum = leaf - cl.worldmodel->leafs - 1;
leafnum = leaf - cl.worldmodel->leafs;
ent->leafnums[ent->numleafs] = leafnum;
ent->numleafs++;