Use a ent_count and ent_max to limit loop through the list to optimize engine's speed.
Authored by: utunnels 2007-04-27
Parent: [r823]
Child: [r825]