zombie", unless there's too many monsters to fit into the pane, in which case revert to using a monster's type name ("small zombie") so that different monsters of the same type will be shown on the same line ("2 rat zombies" + "3 kobold zombies" becomes "5 small zombies").
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5622 c06c8d41-db1a-0410-9941-cceddc491573
F2YWDQUXULLS2WKLVMNEJKEGSGG2MPEREVI2RKH7ROS2YYKKMXHAC
if (lines_needed > (unsigned int) max_print)
{
// Use type names rather than full names ("small zombie" vs
// "rat zobmie") in order to take up less lines.
for (unsigned int i=1; i < mons.size(); i++)
mons[i].m_fullname = false;
std::sort(mons.begin(), mons.end(), monster_pane_info::less_than);
lines_needed = mons.size();
for (unsigned int i=1; i < mons.size(); i++)
if (! monster_pane_info::less_than(mons[i-1], mons[i]))
-- lines_needed;
}
#if BOTTOM_JUSTIFY_MONSTER_LIST