fix the msdos build for NetHack-3.7
This commit is contained in:
@@ -62,7 +62,7 @@ extern int attrib_text_normal; /* text mode normal attribute */
|
||||
extern int attrib_gr_normal; /* graphics mode normal attribute */
|
||||
extern int attrib_gr_intense; /* graphics mode intense attribute */
|
||||
extern boolean inmap; /* in the map window */
|
||||
extern boolean restoring;
|
||||
/* extern boolean g.restoring; */
|
||||
|
||||
/*
|
||||
* Global Variables
|
||||
@@ -609,7 +609,7 @@ int x, y;
|
||||
clipx = clipxmax - (viewport_size - 1);
|
||||
}
|
||||
if (clipx != oldx) {
|
||||
if (on_level(&u.uz0, &u.uz) && !restoring)
|
||||
if (on_level(&u.uz0, &u.uz) && !g.restoring)
|
||||
/* (void) doredraw(); */
|
||||
vesa_redrawmap();
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ static void
|
||||
vga_cliparound(x, y)
|
||||
int x, y;
|
||||
{
|
||||
extern boolean restoring;
|
||||
/* extern boolean g.restoring; */
|
||||
int oldx = clipx;
|
||||
|
||||
if (!iflags.tile_view || iflags.over_view || iflags.traditional_view)
|
||||
@@ -449,7 +449,7 @@ int x, y;
|
||||
clipx = clipxmax - (viewport_size - 1);
|
||||
}
|
||||
if (clipx != oldx) {
|
||||
if (on_level(&u.uz0, &u.uz) && !restoring)
|
||||
if (on_level(&u.uz0, &u.uz) && !g.restoring)
|
||||
/* (void) doredraw(); */
|
||||
vga_redrawmap(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user