comparison xrogue/command.c @ 316:c03d0b87211c

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.
author John "Elwin" Edwards
date Sun, 31 Oct 2021 21:35:53 -0400
parents 32bc72dcbf4f
children
comparison
equal deleted inserted replaced
315:ad2570b5b21f 316:c03d0b87211c
318 player.t_action = A_NIL; 318 player.t_action = A_NIL;
319 gsense(); 319 gsense();
320 } 320 }
321 when 'i' : after = FALSE; inventory(pack, ALL); 321 when 'i' : after = FALSE; inventory(pack, ALL);
322 when 'I' : after = FALSE; picky_inven(); 322 when 'I' : after = FALSE; picky_inven();
323 when 'm' : nameitem((struct linked_list *)NULL, TRUE); 323 when 'm' :
324 after = FALSE;
325 nameitem((struct linked_list *)NULL, TRUE);
324 when 'o' : option(); 326 when 'o' : option();
325 when 'O' : msg("Charactor type: %s Quest item: %s", char_class[char_type].name, rel_magic[quest_item].mi_name); 327 when 'O' : msg("Charactor type: %s Quest item: %s", char_class[char_type].name, rel_magic[quest_item].mi_name);
326 when ',' : 328 when ',' :
327 case 'P' : 329 case 'P' :
328 if (levtype != POSTLEV) { 330 if (levtype != POSTLEV) {
396 pstats.s_exp + (long) purse); 398 pstats.s_exp + (long) purse);
397 when CTRL('E') : msg("Current food level: %d(2000)", 399 when CTRL('E') : msg("Current food level: %d(2000)",
398 food_left); 400 food_left);
399 when CTRL('L') : after = FALSE; clearok(curscr, TRUE); 401 when CTRL('L') : after = FALSE; clearok(curscr, TRUE);
400 touchwin(cw); 402 touchwin(cw);
401 when CTRL('N') : nameit(); 403 when CTRL('N') : after = FALSE; nameit();
402 when CTRL('O') : after = FALSE; opt_player(); 404 when CTRL('O') : after = FALSE; opt_player();
403 when CTRL('R') : after = FALSE; msg(huh); 405 when CTRL('R') : after = FALSE; msg(huh);
404 when CTRL('T') : 406 when CTRL('T') :
405 if (player.t_action == A_NIL) { 407 if (player.t_action == A_NIL) {
406 if (get_dir(&player.t_newpos)) { 408 if (get_dir(&player.t_newpos)) {