]> granicus.if.org Git - nethack/commitdiff
again, looking for that failure condition: pager.c pickup.c
authorkeni <keni>
Fri, 30 Dec 2011 23:58:48 +0000 (23:58 +0000)
committerkeni <keni>
Fri, 30 Dec 2011 23:58:48 +0000 (23:58 +0000)
src/pager.c
src/pickup.c

index 446168f36dbe18c503b400539e3289e7647a35c3..95a4e007c0ee3c53940d3ecce23867c379ee53e5 100644 (file)
@@ -881,7 +881,7 @@ dowhatdoes()
 #endif
        reslt = dowhatdoes_core(q, bufr);
        if (reslt)
-               pline("%s", reslt);
+               pline1(reslt);
        else
                pline("I've never heard of such commands.");
        return 0;
index bcf9f4c52b51bf985e533bc59afaa7470d53c9a3..1545449ca8bad06d18114b10aa4d49ed43f1e095 100644 (file)
@@ -87,7 +87,7 @@ boolean here;         /* flag for type of obj list linkage */
        if (!otmp) {
            impossible("simple_look(null)");
        } else if (!(here ? otmp->nexthere : otmp->nobj)) {
-           pline("%s", doname(otmp));
+           pline1(doname(otmp));
        } else {
            winid tmpwin = create_nhwindow(NHW_MENU);
            putstr(tmpwin, 0, "");
@@ -2321,7 +2321,7 @@ int held;
        /* out-only or out before in */
        if (loot_out && !loot_in_first) {
            if (!Has_contents(current_container)) {
-               pline("%s", emptymsg);          /* <whatever> is empty. */
+               pline1(emptymsg);               /* <whatever> is empty. */
                if (!current_container->cknown) used = 1;
                current_container->cknown = 1;
            } else {
@@ -2381,7 +2381,7 @@ int held;
        /* out after in */
        if (loot_out && loot_in_first) {
            if (!Has_contents(current_container)) {
-               pline("%s", emptymsg);          /* <whatever> is empty. */
+               pline1(emptymsg);               /* <whatever> is empty. */
                if (!current_container->cknown) used = 1;
                current_container->cknown = 1;
            } else {
@@ -2689,7 +2689,7 @@ dotip()
     else if (cobj->otyp == STATUE)
        pline("Nothing interesting happens.");
     else
-       pline(nothing_happens);
+       pline1(nothing_happens);
     return 0;
 }