git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6626 c06c8d41-db1a-0410-9941-cceddc491573
FLM7F5BSK57VURQXINSR5KD5O3TPFYBRMLJ5IVESAAYF2VQUQWAQC
DL4ZORRUZ3X4OCAGW5GVSIXLNK72KFHQOVA5QXU5QHT4YPRLFS2QC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
FI6AL3IS7HK4G5ZHQMIZYGHT4NJMLVH66DMLIQTQG5VLU6ITVPWQC
if (igrd[you.x_pos][you.y_pos] == NON_ITEM) { mpr("There's nothing here!"); return (false); } int objl = igrd[you.x_pos][you.y_pos]; int next;
if (igrd[you.x_pos][you.y_pos] == NON_ITEM)
{
mpr("There's nothing here!");
return (false);
}
int objl = igrd[you.x_pos][you.y_pos];
int next;
while (objl != NON_ITEM)
for ( stack_iterator si(you.pos()); si; ++si )
next = mitm[objl].link; if (mitm[objl].base_type == OBJ_CORPSES && mitm[objl].sub_type == CORPSE_BODY)
next = mitm[objl].link;
if (mitm[objl].base_type == OBJ_CORPSES
&& mitm[objl].sub_type == CORPSE_BODY)
if (si->base_type == OBJ_CORPSES && si->sub_type == CORPSE_BODY)
total_mass += mons_weight(mitm[objl].plus);
total_mass += mons_weight(si->plus);
if (food_is_rotten(mitm[objl]))
if (food_is_rotten(*si))
destroy_item(objl);
destroy_item(si->index());
objl = next;
if (how_many_corpses == 0) { mpr("There are no corpses here!"); return (false); }
if (how_many_corpses == 0)
mpr("There are no corpses here!");