Print developer message when renderer runs out of free entities.

This commit is contained in:
Zack Middleton 2011-11-05 00:56:26 +00:00
parent b648d6f17b
commit 4e59ef714b

View file

@ -209,6 +209,7 @@ void RE_AddRefEntityToScene( const refEntity_t *ent ) {
return;
}
if ( r_numentities >= MAX_ENTITIES ) {
ri.Printf(PRINT_DEVELOPER, "RE_AddRefEntityToScene: Dropping refEntity, reached MAX_ENTITIES\n");
return;
}
if ( Q_isnan(ent->origin[0]) || Q_isnan(ent->origin[1]) || Q_isnan(ent->origin[2]) ) {