try fix for Qt4 using a core macro
../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);
^
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ void NetHackQtInvUsageWindow::drawWorn(QPainter& painter, obj* nhobj, int x, int
|
|||||||
{
|
{
|
||||||
short int glyph;
|
short int glyph;
|
||||||
if (nhobj)
|
if (nhobj)
|
||||||
glyph=obj_to_glyph(nhobj);
|
glyph=obj_to_glyph(nhobj, rn2_on_display_rng);
|
||||||
else if (canbe)
|
else if (canbe)
|
||||||
glyph=cmap_to_glyph(S_room);
|
glyph=cmap_to_glyph(S_room);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user