Moved petname_used to decl.c

This commit is contained in:
Bart House
2018-11-22 15:49:43 -08:00
parent 4e774197a6
commit 6272c37035
3 changed files with 6 additions and 2 deletions

View File

@@ -207,6 +207,7 @@ NEARDATA char dogname[PL_PSIZ] = DUMMY;
NEARDATA char catname[PL_PSIZ] = DUMMY;
NEARDATA char horsename[PL_PSIZ] = DUMMY;
char preferred_pet; /* '\0', 'c', 'd', 'n' (none) */
int petname_used = 0;
/* monsters that went down/up together with @ */
NEARDATA struct monst *mydogs = (struct monst *) 0;
/* monsters that are moving to another dungeon level */
@@ -572,7 +573,8 @@ decl_early_init()
ZEROARRAYN(dogname, PL_PSIZ);
ZEROARRAYN(catname, PL_PSIZ);
ZEROARRAYN(horsename, PL_PSIZ);
preferred_pet = 0;
ZERO(preferred_pet);
ZERO(petname_used);
ZEROPTR(mydogs);
ZEROPTR(migrating_mons);