invent, youmonst, hackdir moved to g.

This commit is contained in:
Bart House
2018-12-24 21:04:15 -08:00
parent 90547edb83
commit 8c1a4d9a97
79 changed files with 1093 additions and 1091 deletions

View File

@@ -323,10 +323,10 @@ STATIC_OVL void
u_to_e(etmp)
struct entity *etmp;
{
etmp->emon = &youmonst;
etmp->emon = &g.youmonst;
etmp->ex = u.ux;
etmp->ey = u.uy;
etmp->edata = youmonst.data;
etmp->edata = g.youmonst.data;
}
STATIC_OVL void
@@ -342,7 +342,7 @@ struct entity *etmp;
etmp->edata = (struct permonst *) 0;
}
#define is_u(etmp) (etmp->emon == &youmonst)
#define is_u(etmp) (etmp->emon == &g.youmonst)
#define e_canseemon(etmp) \
(is_u(etmp) ? (boolean) TRUE : canseemon(etmp->emon))