Browse Source

Remove direct access of ncurses struct

metaverse
jl777 5 years ago
parent
commit
b319a87bef
  1. 6
      src/cc/rogue/mdport.c
  2. 2
      src/cc/rogue/rogue.c

6
src/cc/rogue/mdport.c

@ -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__)

2
src/cc/rogue/rogue.c

@ -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

Loading…
Cancel
Save