This commit is contained in:
nhmall
2015-03-10 18:02:29 -04:00
6 changed files with 10 additions and 3 deletions

View File

@@ -1927,6 +1927,8 @@ quality of the weapon; you are free to manually fill your quiver or quiver sack
or make ready
with the `Q' command instead. If no weapon is found or the option is
false, the `t' (throw) command is executed instead. (default false)
.lp bones
Allow saving and loading bones files. (default true)
.lp boulder
Set the character used to display boulders (default is rock class symbol).
.lp catname

View File

@@ -21,6 +21,7 @@ struct flag {
boolean autoquiver; /* Automatically fill quiver */
boolean beginner;
boolean biff; /* enable checking for mail */
boolean bones; /* allow saving/loading bones */
boolean confirm; /* confirm before hitting tame monsters */
boolean debug; /* in debugging mode */
#define wizard flags.debug

View File

@@ -14,7 +14,7 @@
* Incrementing EDITLEVEL can be used to force invalidation of old bones
* and save files.
*/
#define EDITLEVEL 55
#define EDITLEVEL 56
#define COPYRIGHT_BANNER_A \
"NetHack, Copyright 1985-2012"

View File

@@ -287,6 +287,7 @@ can_make_bones()
{
register struct trap *ttmp;
if (!flags.bones) return FALSE;
if (ledger_no(&u.uz) <= 0 || ledger_no(&u.uz) > maxledgerno())
return FALSE;
if (no_bones_level(&u.uz))
@@ -533,6 +534,7 @@ getbones()
if(discover) /* save bones files for real games */
return(0);
if (!flags.bones) return (0);
/* wizard check added by GAN 02/05/87 */
if(rn2(3) /* only once in three times do we find bones */
&& !wizard

View File

@@ -85,6 +85,7 @@ static struct Bool_Opt
#else
{"BIOS", (boolean *)0, FALSE, SET_IN_FILE},
#endif
{"bones", &flags.bones, TRUE, SET_IN_FILE},
#ifdef INSURANCE
{"checkpoint", &flags.ins_chkpt, TRUE, SET_IN_GAME},
#else

View File

@@ -1337,8 +1337,9 @@ plnamesuffix()
i = (int)strlen(plname);
eptr = GENERIC_USERNAMES;
sptr = strstri(eptr, plname);
if (sptr && ((sptr == eptr && (sptr[i] == ' ' || sptr[i] == '\0'))
|| sptr[i] == ' ' || sptr[i] == '\0'))
if (sptr
&& (sptr == eptr || sptr[-1] == ' ')
&& (sptr[i] == ' ' || sptr[i] == '\0'))
*plname = '\0'; /* call askname() */
#endif