Changeset 267
- Timestamp:
- 07/04/07 14:39:55 (1 year ago)
- Files:
-
- trunk/src/cmd3.c (modified) (4 diffs)
- trunk/src/object1.c (modified) (2 diffs)
- trunk/src/util.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd3.c
r265 r267 436 436 cptr q, s; 437 437 438 const char *inscrip;439 440 438 /* Get an item */ 441 439 q = "Destroy which item? "; … … 490 488 /* Verify destruction */ 491 489 strnfmt(out_val, sizeof(out_val), "Really destroy %s? ", o_name); 492 493 inscrip = (o_ptr->note ? quark_str(o_ptr->note) : NULL);494 495 /* Destroying a squelched item is prompt-free */496 if (!inscrip || !streq(inscrip, "squelch"))497 {498 if (!get_check(out_val)) return;499 }500 490 501 491 … … 558 548 } 559 549 550 #if 0 551 /* 552 * We can only re-enable this when it can be made to interact well with 553 * the repeat code. 554 */ 560 555 561 556 /* We have destroyed a floor item, and the floor is not empty */ … … 566 561 p_ptr->command_rep = 2; 567 562 } 563 #endif 568 564 } 569 565 trunk/src/object1.c
r265 r267 3155 3155 break; 3156 3156 } 3157 3158 /* Hack -- Fix screen */ 3159 if (p_ptr->command_see) 3160 { 3161 /* Load screen */ 3162 screen_load(); 3163 3164 /* Save screen */ 3165 screen_save(); 3166 } 3167 3168 p_ptr->command_wrk = (USE_FLOOR); 3169 3170 break; 3171 } 3172 3157 } 3158 3159 /* Hack -- Fix screen */ 3160 if (p_ptr->command_see) 3161 { 3162 /* Load screen */ 3163 screen_load(); 3164 3165 /* Save screen */ 3166 screen_save(); 3167 } 3168 3169 p_ptr->command_wrk = (USE_FLOOR); 3170 3171 #if 0 3173 3172 /* Check each legal object */ 3174 3173 for (i = 0; i < floor_num; ++i) … … 3189 3188 break; 3190 3189 } 3190 #endif 3191 3191 3192 3192 break; trunk/src/util.c
r249 r267 2959 2959 { 2960 2960 /* Build a prompt */ 2961 strnfmt(tmp, sizeof(tmp), "Quantity (0-%d ): ", max);2961 strnfmt(tmp, sizeof(tmp), "Quantity (0-%d, *=all): ", max); 2962 2962 2963 2963 /* Use that prompt */ … … 2974 2974 amt = atoi(buf); 2975 2975 2976 /* A letter means "all" */2977 if ( isalpha((unsigned char)buf[0])) amt = max;2976 /* A star or letter means "all" */ 2977 if ((buf[0] == '*') || isalpha((unsigned char)buf[0])) amt = max; 2978 2978 } 2979 2979
