]> granicus.if.org Git - nethack/commitdiff
try fix for Qt4 using a core macro
authornhmall <nhmall@nethack.org>
Tue, 29 Jan 2019 22:07:00 +0000 (17:07 -0500)
committernhmall <nhmall@nethack.org>
Tue, 29 Jan 2019 22:07:00 +0000 (17:07 -0500)
../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

index f753ad0971abc14aa698c1c5414a19951a7b6a7f..6d1a201b436149b28b92b468b0812f75daba098a 100644 (file)
@@ -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