From f93533128547e70e1bfd47ce806ba4536c93ee8a Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 29 Jan 2019 17:07:00 -0500 Subject: [PATCH] try fix for Qt4 using a core macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../win/Qt4/qt4inv.cpp:41:26: error: macro "obj_to_glyph" requires 2 arguments, but only 1 given glyph=obj_to_glyph(nhobj); ^ ../win/Qt4/qt4inv.cpp: In member function ‘void nethack_qt4::NetHackQtInvUsageWindow::drawWorn(QPainter&, obj*, int, int, bool)’: ../win/Qt4/qt4inv.cpp:41:8: error: ‘obj_to_glyph’ was not declared in this scope glyph=obj_to_glyph(nhobj); ^ --- win/Qt4/qt4inv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/Qt4/qt4inv.cpp b/win/Qt4/qt4inv.cpp index f753ad097..6d1a201b4 100644 --- a/win/Qt4/qt4inv.cpp +++ b/win/Qt4/qt4inv.cpp @@ -38,7 +38,7 @@ void NetHackQtInvUsageWindow::drawWorn(QPainter& painter, obj* nhobj, int x, int { short int glyph; if (nhobj) - glyph=obj_to_glyph(nhobj); + glyph=obj_to_glyph(nhobj, rn2_on_display_rng); else if (canbe) glyph=cmap_to_glyph(S_room); else