]> granicus.if.org Git - nethack/commitdiff
Record in xlogfile if any bones were loaded
authorPasi Kallinen <paxed@alt.org>
Thu, 2 Apr 2015 10:06:45 +0000 (13:06 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 2 Apr 2015 10:06:45 +0000 (13:06 +0300)
include/you.h
src/bones.c
src/topten.c

index a69fe4de377618f3836d0090b210573113977154..11ba9079e33dc88a863c28c2cc77307a2d6af5cd 100644 (file)
@@ -95,6 +95,7 @@ struct u_conduct {            /* number of times... */
 struct u_roleplay {
     boolean  blind;   /* permanently blind */
     boolean  nudist;  /* has not worn any armor, ever */
+    long numbones;    /* # of bones files loaded  */
 };
 
 /*** Unified structure containing role information ***/
index 9024354a2a904070767ef4a93d47af8da51104b4..f061316b4c1203886fdf9c7ed499ce8e6be90410 100644 (file)
@@ -597,6 +597,7 @@ getbones()
        }
        (void) close(fd);
        sanitize_engravings();
+       u.uroleplay.numbones++;
 
        if(wizard) {
                if(yn("Unlink bones?") == 'n') {
index 0614eaeedf63872bcf37ff4ac4efeb1491c7a40d..c803aac392b4a3779462e44b287a6dc56312bf2b 100644 (file)
@@ -353,8 +353,9 @@ encodexlogflags()
 {
     long e = 0L;
 
-    if (wizard)   e |= 1L << 0;
-    if (discover) e |= 1L << 1;
+    if (wizard)                e |= 1L << 0;
+    if (discover)              e |= 1L << 1;
+    if (!u.uroleplay.numbones) e |= 1L << 2;
 
     return e;
 }