From: Pasi Kallinen Date: Thu, 2 Apr 2015 10:06:45 +0000 (+0300) Subject: Record in xlogfile if any bones were loaded X-Git-Tag: NetHack-3.6.0_RC01~492^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=884d9d4be53ffd548bf5a143d01c701bf4a5c411;p=nethack Record in xlogfile if any bones were loaded --- diff --git a/include/you.h b/include/you.h index a69fe4de3..11ba9079e 100644 --- a/include/you.h +++ b/include/you.h @@ -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 ***/ diff --git a/src/bones.c b/src/bones.c index 9024354a2..f061316b4 100644 --- a/src/bones.c +++ b/src/bones.c @@ -597,6 +597,7 @@ getbones() } (void) close(fd); sanitize_engravings(); + u.uroleplay.numbones++; if(wizard) { if(yn("Unlink bones?") == 'n') { diff --git a/src/topten.c b/src/topten.c index 0614eaeed..c803aac39 100644 --- a/src/topten.c +++ b/src/topten.c @@ -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; }