Record in xlogfile if any bones were loaded
This commit is contained in:
@@ -95,6 +95,7 @@ struct u_conduct { /* number of times... */
|
|||||||
struct u_roleplay {
|
struct u_roleplay {
|
||||||
boolean blind; /* permanently blind */
|
boolean blind; /* permanently blind */
|
||||||
boolean nudist; /* has not worn any armor, ever */
|
boolean nudist; /* has not worn any armor, ever */
|
||||||
|
long numbones; /* # of bones files loaded */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*** Unified structure containing role information ***/
|
/*** Unified structure containing role information ***/
|
||||||
|
|||||||
@@ -597,6 +597,7 @@ getbones()
|
|||||||
}
|
}
|
||||||
(void) close(fd);
|
(void) close(fd);
|
||||||
sanitize_engravings();
|
sanitize_engravings();
|
||||||
|
u.uroleplay.numbones++;
|
||||||
|
|
||||||
if(wizard) {
|
if(wizard) {
|
||||||
if(yn("Unlink bones?") == 'n') {
|
if(yn("Unlink bones?") == 'n') {
|
||||||
|
|||||||
@@ -353,8 +353,9 @@ encodexlogflags()
|
|||||||
{
|
{
|
||||||
long e = 0L;
|
long e = 0L;
|
||||||
|
|
||||||
if (wizard) e |= 1L << 0;
|
if (wizard) e |= 1L << 0;
|
||||||
if (discover) e |= 1L << 1;
|
if (discover) e |= 1L << 1;
|
||||||
|
if (!u.uroleplay.numbones) e |= 1L << 2;
|
||||||
|
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user