Skip to content

Commit

Permalink
Fix compilation after removing MAX_ENTITIES define
Browse files Browse the repository at this point in the history
  • Loading branch information
ensiform committed Nov 22, 2023
1 parent 95b9803 commit 9003993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cgame/cg_localents.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ void CG_ReflectVelocity( localEntity_t *le, trace_t *trace ) {
// le->pos.trType = TR_STATIONARY;
} else if ( trace->allsolid || ( trace->plane.normal[2] > 0 && ( le->pos.trDelta[2] < 40 || le->pos.trDelta[2] < -cg.frametime * le->pos.trDelta[2] ) ) ) {
//----(SA) if it's a fragment and it's not resting on the world...
// if(le->leType == LE_DEBRIS && trace->entityNum < (MAX_ENTITIES - 1))
if ( le->leType == LE_FRAGMENT && trace->entityNum < ( MAX_ENTITIES - 1 ) ) {
// if(le->leType == LE_DEBRIS && trace->entityNum < (ENTITYNUM_WORLD))
if ( le->leType == LE_FRAGMENT && trace->entityNum < ( ENTITYNUM_WORLD ) ) {
le->pos.trType = TR_GRAVITY_PAUSED;
} else {
le->pos.trType = TR_STATIONARY;
Expand Down

0 comments on commit 9003993

Please sign in to comment.