More globals moved to instance_globals.

This commit is contained in:
Bart House
2018-12-19 21:26:35 -08:00
parent b7a0e69998
commit 576eece500
65 changed files with 498 additions and 505 deletions

View File

@@ -168,7 +168,7 @@ xchar x, y;
boolean
is_digging()
{
if (occupation == dig) {
if (g.occupation == dig) {
return TRUE;
}
return FALSE;
@@ -492,7 +492,7 @@ dig(VOID_ARGS)
int
holetime()
{
if (occupation != dig || !*u.ushops)
if (g.occupation != dig || !*u.ushops)
return -1;
return ((250 - context.digging.effort) / 20);
}
@@ -1063,7 +1063,7 @@ struct obj *obj;
/* you ought to be able to let go; tough luck */
/* (maybe `move_into_trap()' would be better) */
nomul(-d(2, 2));
multi_reason = "stuck in a spider web";
g.multi_reason = "stuck in a spider web";
nomovemsg = "You pull free.";
} else if (lev->typ == IRONBARS) {
pline("Clang!");