redundant feedback for containers (trunk only)
Looting or applying an empty container whose [lack of] contents is known yields "Your empty <container> is empty." Suppress the first "empty". No fixes entry needed; this is post-3.4.3 code.
This commit is contained in:
10
src/pickup.c
10
src/pickup.c
@@ -1,4 +1,4 @@
|
|||||||
/* SCCS Id: @(#)pickup.c 3.5 2005/02/05 */
|
/* SCCS Id: @(#)pickup.c 3.5 2005/04/06 */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -2145,9 +2145,15 @@ int held;
|
|||||||
You("owe %ld %s for lost merchandise.", loss, currency(loss));
|
You("owe %ld %s for lost merchandise.", loss, currency(loss));
|
||||||
obj->owt = weight(obj); /* in case any items were lost */
|
obj->owt = weight(obj); /* in case any items were lost */
|
||||||
|
|
||||||
if (!cnt)
|
if (!cnt) {
|
||||||
|
unsigned save_cknown = obj->cknown;
|
||||||
|
|
||||||
|
/* avoid redundant "Your empty chest is empty." */
|
||||||
|
obj->cknown = 0;
|
||||||
Sprintf(emptymsg, "%s is %sempty.", Yname2(obj),
|
Sprintf(emptymsg, "%s is %sempty.", Yname2(obj),
|
||||||
quantum_cat ? "now " : "");
|
quantum_cat ? "now " : "");
|
||||||
|
obj->cknown = save_cknown; /* will be set to 1 */
|
||||||
|
}
|
||||||
|
|
||||||
if (cnt || flags.menu_style == MENU_FULL) {
|
if (cnt || flags.menu_style == MENU_FULL) {
|
||||||
Strcpy(qbuf, "Do you want to take something out of ");
|
Strcpy(qbuf, "Do you want to take something out of ");
|
||||||
|
|||||||
Reference in New Issue
Block a user