long worm #stats

When #stats shows memory use for monsters, include long worm tails.
This commit is contained in:
PatR
2016-05-01 00:34:36 -07:00
parent 16c08f7296
commit 759544dd33
4 changed files with 29 additions and 11 deletions

View File

@@ -677,6 +677,14 @@ register xchar *nx, *ny;
: (y > 1 ? (y < ROWNO ? (rn2(3) - 1) : -rn2(2)) : rn2(2)));
}
/* for size_monst(cmd.c) to support #stats */
int
size_wseg(worm)
struct monst *worm;
{
return (int) (count_wsegs(worm) * sizeof (struct wseg));
}
/* count_wsegs()
* returns the number of segments that a worm has.
*/