Changeset 335
- Timestamp:
- 07/13/07 14:06:25 (1 year ago)
- Files:
-
- branches/angband-3.0.8/src/store.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/angband-3.0.8/src/store.c
r328 r335 174 174 175 175 const char *owner_name = &b_name[ot_ptr->owner_name]; 176 int i = p_ptr->lev / 5; 176 /* We go from level 1 - 50 */ 177 int i = (p_ptr->lev - 1) / 5; 178 179 /* Sanity check in case we increase the max level carelessly */ 180 i = MIN(i, N_ELEMENTS(comment_welcome) - 1); 177 181 178 182 /* Only show the message one in four times to stop it being irritating. */ … … 1924 1928 1925 1929 /* Message */ 1930 object_desc(o_name, sizeof(o_name), &inventory[item_new], TRUE, 3); 1926 1931 msg_format("You have %s (%c).", o_name, index_to_label(item_new)); 1927 1932 store_flags |= STORE_KEEP_PROMPT; … … 2644 2649 if (store_flags & STORE_KEEP_PROMPT) 2645 2650 { 2651 /* Unset so that the prompt is cleared next time */ 2646 2652 store_flags &= ~STORE_KEEP_PROMPT; 2647 2653 } 2648 2654 else 2649 2655 { 2650 /* Clear the prompt, and mark it as read (i.e. no -more- 2651 prompt will be issued when messages are flushed. */ 2656 /* Clear the prompt */ 2652 2657 prt("", 0, 0); 2653 msg_flag = FALSE;2654 2658 } 2655 2659 } … … 2679 2683 leave = store_overflow(); 2680 2684 } 2685 2686 msg_flag = FALSE; 2681 2687 } 2682 2688
