* Fix confusion of cgame and renderer entity array bounds (Tr3B)

This commit is contained in:
Tim Angus 2008-07-16 18:07:36 +00:00
parent 42e444ea0b
commit 3855f65d17

View file

@ -208,8 +208,7 @@ void RE_AddRefEntityToScene( const refEntity_t *ent ) {
if ( !tr.registered ) { if ( !tr.registered ) {
return; return;
} }
// https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=402 if ( r_numentities >= MAX_ENTITIES ) {
if ( r_numentities >= ENTITYNUM_WORLD ) {
return; return;
} }
if ( ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) { if ( ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) {