]> granicus.if.org Git - nethack/commitdiff
message follow-up
authornethack.allison <nethack.allison>
Mon, 25 Feb 2002 20:24:04 +0000 (20:24 +0000)
committernethack.allison <nethack.allison>
Mon, 25 Feb 2002 20:24:04 +0000 (20:24 +0000)
src/shk.c

index 2d9bcc2151e110ef812834d89970b16e4ba2fec4..b2e5d26ac8ccde60c7558e5ebcc244fa3d7cf2df 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -2686,7 +2686,8 @@ move_on:
                            (!ltmp && cltmp && only_partially_your_contents) ?
                             " your items in" : (!ltmp && cltmp) ? " the contents of" : "",
                            obj->unpaid ? "the" : "your", xname(obj),
-                           (obj->quan == 1L && !only_partially_your_contents) ?
+                           (obj->quan == 1L &&
+                           !(!ltmp && cltmp && only_partially_your_contents)) ?
                            "it" : "them");
                } else  qbuf[0] = '\0';         /* just to pacify lint */
 
@@ -2704,7 +2705,7 @@ move_on:
                            subfrombill(obj, shkp);
                            pay(-offer, shkp);
                            shk_names_obj(shkp, obj, (sell_how != SELL_NORMAL) ?
-                                   only_partially_your_contents ?
+                                   (!ltmp && cltmp && only_partially_your_contents) ?
                                    "sold some items inside %s for %ld gold pieces%s.%s" :
                                    "sold %s for %ld gold piece%s.%s" :
               "relinquish %s and receive %ld gold piece%s in compensation.%s",