First set of changes to move globals to instance_globals.
This commit is contained in:
@@ -648,9 +648,6 @@ boolean restoring_msghist;
|
||||
{
|
||||
static boolean initd = FALSE;
|
||||
int idx;
|
||||
#ifdef DUMPLOG
|
||||
extern unsigned saved_pline_index; /* pline.c */
|
||||
#endif
|
||||
|
||||
if (restoring_msghist && !initd) {
|
||||
/* we're restoring history from the previous session, but new
|
||||
@@ -662,7 +659,7 @@ boolean restoring_msghist;
|
||||
initd = TRUE;
|
||||
#ifdef DUMPLOG
|
||||
/* this suffices; there's no need to scrub saved_pline[] pointers */
|
||||
saved_pline_index = 0;
|
||||
g.saved_pline_index = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -3217,7 +3217,6 @@ void
|
||||
tty_cliparound(x, y)
|
||||
int x, y;
|
||||
{
|
||||
extern boolean restoring;
|
||||
int oldx = clipx, oldy = clipy;
|
||||
|
||||
HUPSKIP();
|
||||
@@ -3238,7 +3237,7 @@ int x, y;
|
||||
clipy = clipymax - (LI - 3);
|
||||
}
|
||||
if (clipx != oldx || clipy != oldy) {
|
||||
if (on_level(&u.uz0, &u.uz) && !restoring)
|
||||
if (on_level(&u.uz0, &u.uz) && !g.restoring)
|
||||
(void) doredraw();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user