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

@@ -2753,9 +2753,7 @@ dopickup(void)
{
int count, tmpcount, ret;
/* awful kludge to work around parse()'s pre-decrement */
count = (g.multi || (g.save_cm && *g.save_cm == cmd_from_func(dopickup)))
? g.multi + 1 : 0;
count = g.command_count;
g.multi = 0; /* always reset */
if ((ret = pickup_checks()) >= 0) {
@@ -3002,6 +3000,10 @@ end_running(boolean and_travel)
all clear it too */
if (and_travel)
g.context.travel = g.context.travel1 = g.context.mv = 0;
// Cancel mutli
if (g.multi > 0)
g.multi = 0;
}
void