git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5742 c06c8d41-db1a-0410-9941-cceddc491573
T2AT2ZAM5WK7JNFXBQCVXBEX4AMJ6ELQMOPQM4JZUBBYOVLCMO4AC
{
bool has_shops = false;
for (i = 0; i < MAX_SHOPS; i++)
if (env.shop[i].type != SHOP_UNASSIGNED)
{
has_shops = true;
break;
}
if (has_shops)
{
mpr("Shop items:");
for (i = 0; i < MAX_SHOPS; i++)
if (env.shop[i].type != SHOP_UNASSIGNED)
{
int objl = igrd[0][i + 5];
while (objl != NON_ITEM)
{
item_def &item(mitm[objl]);
std::string name = item.name(DESC_PLAIN, false,
false, false);
mpr(name.c_str());
objl = item.link;
}
}
mpr("");
} // if (has_shops)