Qt paper doll fix for two-handed weapons
Allowing optional arguments can be risky. The recent glyph changes added a new argument to the routine that constructs a mirror image of a tile but not to the call to that routine. Because an existing argument was optional, the compiler didn't complain about the new one being missing. Obsolete optional 'fem' argument ought to removed but this doesn't tackle that.
This commit is contained in:
@@ -98,7 +98,7 @@ void NetHackQtGlyphs::drawGlyph(QPainter& painter, int glyph, int tileidx,
|
||||
painter.drawPixmap(x, y, pm, px, py, width(), height());
|
||||
} else {
|
||||
// for paper doll; mirrored image for left side of two-handed weapon
|
||||
painter.drawPixmap(x, y, reversed_pixmap(glyph, fem),
|
||||
painter.drawPixmap(x, y, reversed_pixmap(glyph, tileidx, fem),
|
||||
0, 0, width(), height());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user