Simplify rhack and parse

AFAICT, we only used the first char of the "command_line" string.
Just turn it into int to hold the key the main input loop parse() got.

Shouldn't have any functional difference.
This commit is contained in:
Pasi Kallinen
2024-01-26 15:19:21 +02:00
parent 17414c500a
commit 39fb072a92
5 changed files with 24 additions and 43 deletions

View File

@@ -485,13 +485,13 @@ moveloop_core(void)
} else {
--gm.multi;
nhassert(gc.command_count != 0);
rhack(gc.command_line);
rhack(gc.cmd_key);
}
} else if (gm.multi == 0) {
#ifdef MAIL
ckmailstatus();
#endif
rhack((char *) 0);
rhack(0);
}
if (u.utotype) /* change dungeon level */
deferred_goto(); /* after rhack() */