]> granicus.if.org Git - nethack/commitdiff
Report insanities via impossible
authorPasi Kallinen <paxed@alt.org>
Wed, 7 Nov 2018 16:50:09 +0000 (18:50 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 7 Nov 2018 16:50:09 +0000 (18:50 +0200)
src/mkobj.c
src/timeout.c

index 558be1dc6add8a1bea46c0aef2c9a89b1dee057f..8442f680cff0f41f53d71da9a1b42b46c2fe52ed 100644 (file)
@@ -2251,7 +2251,7 @@ obj_sanity_check()
     /* monsters temporarily in transit;
        they should have arrived with hero by the time we get called */
     if (mydogs) {
-        pline("mydogs sanity [not empty]");
+        impossible("mydogs sanity [not empty]");
         mon_obj_sanity(mydogs, "mydogs minvent sanity");
     }
 
@@ -2390,10 +2390,10 @@ struct monst *mon;
         Strcat(strcpy(altfmt, fmt), " held by mon %s (%s)");
         if (mon)
             monnm = x_monnam(mon, ARTICLE_A, (char *) 0, EXACT_NAME, TRUE);
-        pline(altfmt, mesg, fmt_ptr((genericptr_t) obj), where_name(obj),
+        impossible(altfmt, mesg, fmt_ptr((genericptr_t) obj), where_name(obj),
               objnm, fmt_ptr((genericptr_t) mon), monnm);
     } else {
-        pline(fmt, mesg, fmt_ptr((genericptr_t) obj), where_name(obj), objnm);
+        impossible(fmt, mesg, fmt_ptr((genericptr_t) obj), where_name(obj), objnm);
     }
 }
 
@@ -2421,7 +2421,7 @@ const char *mesg;
         if (obj->where != OBJ_CONTAINED)
             insane_object(obj, "%s obj %s %s: %s", mesg, (struct monst *) 0);
         else if (obj->ocontainer != container)
-            pline("%s obj %s in container %s, not %s", mesg,
+            impossible("%s obj %s in container %s, not %s", mesg,
                   fmt_ptr((genericptr_t) obj),
                   fmt_ptr((genericptr_t) obj->ocontainer),
                   fmt_ptr((genericptr_t) container));
index a469eb1164213ab91818fe39e7affd99e0e916d8..4c9be060778781238905a112092f711405eb1618 100644 (file)
@@ -1720,7 +1720,7 @@ timer_sanity_check()
             struct obj *obj = curr->arg.a_obj;
 
             if (obj->timed == 0) {
-                pline("timer sanity: untimed obj %s, timer %ld",
+                impossible("timer sanity: untimed obj %s, timer %ld",
                       fmt_ptr((genericptr_t) obj), curr->tid);
             }
         }