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:
@@ -236,7 +236,7 @@ struct instance_globals_c {
|
||||
coord clicklook_cc;
|
||||
/* decl.c */
|
||||
char chosen_windowtype[WINTYPELEN];
|
||||
char command_line[COLNO];
|
||||
int cmd_key; /* parse() / rhack() */
|
||||
cmdcount_nht command_count;
|
||||
/* some objects need special handling during destruction or placement */
|
||||
struct obj *current_wand; /* wand currently zapped/applied */
|
||||
|
||||
Reference in New Issue
Block a user