Remove awful kludges dealing with command counts.

This commit is contained in:
Bart House
2021-01-30 19:06:27 -08:00
parent 38e69519d1
commit a54a8c6854
6 changed files with 35 additions and 29 deletions

View File

@@ -246,8 +246,7 @@ throw_obj(struct obj *obj, int shotlimit)
static boolean
ok_to_throw(int *shotlimit_p) /* (see dothrow()) */
{
/* kludge to work around parse()'s pre-decrement of `multi' */
*shotlimit_p = (g.multi || g.save_cm) ? g.multi + 1 : 0;
*shotlimit_p = g.command_count;
g.multi = 0; /* reset; it's been used up */
if (notake(g.youmonst.data)) {