Moved potion.c globals to instance_globals.

This commit is contained in:
Bart House
2018-11-23 11:23:03 -08:00
parent d37a91a6b8
commit d3c192e5a8
15 changed files with 74 additions and 84 deletions

View File

@@ -26,7 +26,6 @@ STATIC_OVL NEARDATA const char *breathwep[] = {
"strange breath #9"
};
extern boolean notonhead; /* for long worms */
STATIC_VAR int mesg_given; /* for m_throw()/thitu() 'miss' message */
/* hero is hit by something other than a monster */
@@ -312,7 +311,7 @@ boolean verbose; /* give message(s) even when you can't see what happened */
int objgone = 1;
struct obj *mon_launcher = archer ? MON_WEP(archer) : NULL;
notonhead = (bhitpos.x != mtmp->mx || bhitpos.y != mtmp->my);
g.notonhead = (bhitpos.x != mtmp->mx || bhitpos.y != mtmp->my);
ismimic = mtmp->m_ap_type && mtmp->m_ap_type != M_AP_MONSTER;
vis = cansee(bhitpos.x, bhitpos.y);
@@ -477,7 +476,7 @@ struct obj *obj; /* missile (or stack providing it) */
bhitpos.x = x;
bhitpos.y = y;
notonhead = FALSE; /* reset potentially stale value */
g.notonhead = FALSE; /* reset potentially stale value */
if (obj->quan == 1L) {
/*