Moved decl.c globals into instance globals.
This commit is contained in:
14
src/worn.c
14
src/worn.c
@@ -247,7 +247,7 @@ int adjust; /* positive => increase speed, negative => decrease */
|
||||
struct obj *obj; /* item to make known if effect can be seen */
|
||||
{
|
||||
struct obj *otmp;
|
||||
boolean give_msg = !in_mklev, petrify = FALSE;
|
||||
boolean give_msg = !g.in_mklev, petrify = FALSE;
|
||||
unsigned int oldspeed = mon->mspeed;
|
||||
|
||||
switch (adjust) {
|
||||
@@ -339,11 +339,11 @@ boolean on, silently;
|
||||
mon->minvis = !mon->invis_blkd;
|
||||
break;
|
||||
case FAST: {
|
||||
boolean save_in_mklev = in_mklev;
|
||||
boolean save_in_mklev = g.in_mklev;
|
||||
if (silently)
|
||||
in_mklev = TRUE;
|
||||
g.in_mklev = TRUE;
|
||||
mon_adjust_speed(mon, 0, obj);
|
||||
in_mklev = save_in_mklev;
|
||||
g.in_mklev = save_in_mklev;
|
||||
break;
|
||||
}
|
||||
/* properties handled elsewhere */
|
||||
@@ -379,11 +379,11 @@ boolean on, silently;
|
||||
mon->minvis = mon->perminvis;
|
||||
break;
|
||||
case FAST: {
|
||||
boolean save_in_mklev = in_mklev;
|
||||
boolean save_in_mklev = g.in_mklev;
|
||||
if (silently)
|
||||
in_mklev = TRUE;
|
||||
g.in_mklev = TRUE;
|
||||
mon_adjust_speed(mon, 0, obj);
|
||||
in_mklev = save_in_mklev;
|
||||
g.in_mklev = save_in_mklev;
|
||||
break;
|
||||
}
|
||||
case FIRE_RES:
|
||||
|
||||
Reference in New Issue
Block a user