more window port code uses of obj_to_glyph()

This commit is contained in:
nhmall
2019-01-29 17:21:55 -05:00
parent f935331285
commit ccc14a038b
2 changed files with 2 additions and 2 deletions

View File

@@ -3461,7 +3461,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

View File

@@ -75,7 +75,7 @@ image_of_worn_object(struct obj *o)
GdkImlibImage *im;
if (o)
glyph = obj_to_glyph(o);
glyph = obj_to_glyph(o, rn2_on_display_rng);
else
glyph = cmap_to_glyph(S_stone);