First set of changes to move globals to instance_globals.

This commit is contained in:
Bart House
2018-11-23 21:29:19 -08:00
parent 616a469f0f
commit 912886a73f
51 changed files with 680 additions and 565 deletions

View File

@@ -160,7 +160,6 @@ makedog()
register struct obj *otmp;
const char *petname;
int pettype;
static int petname_used = 0;
if (preferred_pet == 'n')
return ((struct monst *) 0);
@@ -198,7 +197,7 @@ makedog()
put_saddle_on_mon(otmp, mtmp);
}
if (!petname_used++ && *petname)
if (!g.petname_used++ && *petname)
mtmp = christen_monst(mtmp, petname);
initedog(mtmp);