Remove direct access of ncurses struct
This commit is contained in:
@@ -260,9 +260,9 @@ md_hasclreol()
|
||||
#if defined(clr_eol)
|
||||
#ifdef NCURSES_VERSION
|
||||
if (cur_term == NULL)
|
||||
return(0);
|
||||
if (cur_term->type.Strings == NULL)
|
||||
return(0);
|
||||
return(0);
|
||||
//if (cur_term->type.Strings == NULL)
|
||||
return(0);
|
||||
#endif
|
||||
return((clr_eol != NULL) && (*clr_eol != 0));
|
||||
#elif defined(__PDCURSES__)
|
||||
|
||||
@@ -380,7 +380,7 @@ playit(struct rogue_state *rs)
|
||||
}
|
||||
|
||||
if (md_hasclreol())
|
||||
inv_type = INV_CLEAR;
|
||||
inv_type = INV_CLEAR;
|
||||
|
||||
/*
|
||||
* parse environment declaration of options
|
||||
|
||||
Reference in New Issue
Block a user