Record in xlogfile if any bones were loaded

This commit is contained in:
Pasi Kallinen
2015-04-02 13:06:45 +03:00
parent 066e415c3e
commit 884d9d4be5
3 changed files with 5 additions and 2 deletions

View 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 ***/

View File

@@ -597,6 +597,7 @@ getbones()
}
(void) close(fd);
sanitize_engravings();
u.uroleplay.numbones++;
if(wizard) {
if(yn("Unlink bones?") == 'n') {

View 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;
}