Qt without tiles
When tiles fail to load, the Qt interface switches to the text map. But it wasn't inhibiting the player from trying to switch to tiles map. Also, when the text map was in use it was forcing the paper doll inventory subset to be disabled regardless of whether the map was by choice or because tiles wouldn't load. Allow the paper doll in combination with the text map if tiles got loaded successfully.
This commit is contained in:
@@ -176,7 +176,8 @@ void NetHackQtInvUsageWindow::paintEvent(QPaintEvent*)
|
||||
// Actually indexed by grid[column][row].
|
||||
|
||||
#ifdef ENHANCED_PAPERDOLL
|
||||
if (iflags.wc_ascii_map)
|
||||
if (qt_settings->doll_is_shown && ::iflags.wc_ascii_map
|
||||
&& qt_settings->glyphs().no_tiles)
|
||||
qt_settings->doll_is_shown = false;
|
||||
if (!qt_settings->doll_is_shown)
|
||||
return;
|
||||
@@ -185,7 +186,7 @@ void NetHackQtInvUsageWindow::paintEvent(QPaintEvent*)
|
||||
qt_settings->dollHeight);
|
||||
|
||||
/* for drawWorn()'s use of obj->invlet */
|
||||
if (!flags.invlet_constant)
|
||||
if (!::flags.invlet_constant)
|
||||
reassign();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user