Moved more globals to instance_globals.
This commit is contained in:
@@ -791,7 +791,7 @@ curses_init_options()
|
||||
/* Make sure that DECgraphics is not set to true via the config
|
||||
file, as this will cause display issues. We can't disable it in
|
||||
options.c in case the game is compiled with both tty and curses. */
|
||||
if (!symset[PRIMARY].name || !strcmpi(symset[PRIMARY].name, "DECgraphics")) {
|
||||
if (!g.symset[PRIMARY].name || !strcmpi(g.symset[PRIMARY].name, "DECgraphics")) {
|
||||
load_symset("curses",PRIMARY);
|
||||
load_symset("default",ROGUESET);
|
||||
}
|
||||
|
||||
@@ -590,7 +590,7 @@ curses_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph, int bkglyph)
|
||||
if ((special & MG_DETECT) && iflags.use_inverse) {
|
||||
attr = A_REVERSE;
|
||||
}
|
||||
if (!symset[PRIMARY].name || !strcmpi(symset[PRIMARY].name, "curses")) {
|
||||
if (!g.symset[PRIMARY].name || !strcmpi(g.symset[PRIMARY].name, "curses")) {
|
||||
ch = curses_convert_glyph(ch, glyph);
|
||||
}
|
||||
if (wid == NHW_MAP) {
|
||||
|
||||
@@ -454,7 +454,7 @@ curses_convert_glyph(int ch, int glyph)
|
||||
|
||||
/* If user selected a custom character for this object, don't
|
||||
override this. */
|
||||
if (((glyph_is_cmap(glyph)) && (ch != showsyms[symbol]))) {
|
||||
if (((glyph_is_cmap(glyph)) && (ch != g.showsyms[symbol]))) {
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user