Naming items should not use up a turn.

This was fixed by adding "after = FALSE;" to the relevant cases in
command().

Rogue V4 and V5 are not affected.
This commit is contained in:
John "Elwin" Edwards 2021-10-31 21:35:53 -04:00
parent 2a9d279baa
commit 8a4bf37667
6 changed files with 12 additions and 10 deletions

View file

@ -222,8 +222,8 @@ command(void)
when 'W' : wear(); when 'W' : wear();
when 'T' : take_off(); when 'T' : take_off();
when 'o' : option(); when 'o' : option();
when 'c' : call(FALSE); when 'c' : after = FALSE; call(FALSE);
when 'm' : call(TRUE); when 'm' : after = FALSE; call(TRUE);
when '>' : after = FALSE; d_level(); when '>' : after = FALSE; d_level();
when '<' : after = FALSE; u_level(); when '<' : after = FALSE; u_level();
when '?' : after = FALSE; help(); when '?' : after = FALSE; help();

View file

@ -285,9 +285,9 @@ command(void)
when C_WEAR : wear(); when C_WEAR : wear();
when C_TAKEOFF : take_off(); when C_TAKEOFF : take_off();
when 'o' : option(); when 'o' : option();
when CTRL('N') : nameit(); when CTRL('N') : after = FALSE; nameit();
when '=' : after = FALSE; display(); when '=' : after = FALSE; display();
when 'm' : nameitem(NULL, TRUE); when 'm' : after = FALSE; nameitem(NULL, TRUE);
when '>' : after = FALSE; d_level(); when '>' : after = FALSE; d_level();
when '<' : after = FALSE; u_level(); when '<' : after = FALSE; u_level();
when '?' : after = FALSE; help(); when '?' : after = FALSE; help();

View file

@ -166,7 +166,7 @@ command()
when 'P' : ring_on(); when 'P' : ring_on();
when 'R' : ring_off(); when 'R' : ring_off();
when 'o' : option(); when 'o' : option();
when 'c' : call(); when 'c' : after = FALSE; call();
when '>' : after = FALSE; d_level(); when '>' : after = FALSE; d_level();
when '<' : after = FALSE; u_level(); when '<' : after = FALSE; u_level();
when '?' : after = FALSE; help(); when '?' : after = FALSE; help();

View file

@ -175,7 +175,7 @@ command(void)
when 'P' : ring_on(); when 'P' : ring_on();
when 'R' : ring_off(); when 'R' : ring_off();
when 'O' : option(); when 'O' : option();
when 'c' : call(); when 'c' : after = FALSE; call();
when '>' : after = FALSE; d_level(); when '>' : after = FALSE; d_level();
when '<' : after = FALSE; u_level(); when '<' : after = FALSE; u_level();
when '?' : after = FALSE; help(); when '?' : after = FALSE; help();

View file

@ -394,8 +394,8 @@ command(void)
case 'P': ring_on(); break; case 'P': ring_on(); break;
case 'R': ring_off(); break; case 'R': ring_off(); break;
case 'p': prayer(); break; case 'p': prayer(); break;
case 'C': call(FALSE); break; case 'C': after = FALSE; call(FALSE); break;
case 'M': call(TRUE); break; case 'M': after = FALSE; call(TRUE); break;
case 's': search(FALSE); break; case 's': search(FALSE); break;
/* /*

View file

@ -320,7 +320,9 @@ command(void)
} }
when 'i' : after = FALSE; inventory(pack, ALL); when 'i' : after = FALSE; inventory(pack, ALL);
when 'I' : after = FALSE; picky_inven(); when 'I' : after = FALSE; picky_inven();
when 'm' : nameitem((struct linked_list *)NULL, TRUE); when 'm' :
after = FALSE;
nameitem((struct linked_list *)NULL, TRUE);
when 'o' : option(); when 'o' : option();
when 'O' : msg("Charactor type: %s Quest item: %s", char_class[char_type].name, rel_magic[quest_item].mi_name); when 'O' : msg("Charactor type: %s Quest item: %s", char_class[char_type].name, rel_magic[quest_item].mi_name);
when ',' : when ',' :
@ -398,7 +400,7 @@ command(void)
food_left); food_left);
when CTRL('L') : after = FALSE; clearok(curscr, TRUE); when CTRL('L') : after = FALSE; clearok(curscr, TRUE);
touchwin(cw); touchwin(cw);
when CTRL('N') : nameit(); when CTRL('N') : after = FALSE; nameit();
when CTRL('O') : after = FALSE; opt_player(); when CTRL('O') : after = FALSE; opt_player();
when CTRL('R') : after = FALSE; msg(huh); when CTRL('R') : after = FALSE; msg(huh);
when CTRL('T') : when CTRL('T') :