Polymost: Don't cut off a row and/or column of texels when drawing floor-aligned sprites with odd dimensions.

git-svn-id: https://svn.eduke32.com/eduke32@6219 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-06-21 13:47:04 +00:00
parent ad46ac785f
commit f03d704ddb

View file

@ -4747,8 +4747,8 @@ void polymost_drawsprite(int32_t snum)
if ((globalorientation & 8) > 0)
off.y = -off.y;
vec2f_t const p0 = { (float)((tsiz.x >> 1) - off.x) * tspr->xrepeat,
(float)((tsiz.y >> 1) - off.y) * tspr->yrepeat },
vec2f_t const p0 = { (float)(((tsiz.x + 1) >> 1) - off.x) * tspr->xrepeat,
(float)(((tsiz.y + 1) >> 1) - off.y) * tspr->yrepeat },
p1 = { (float)((tsiz.x >> 1) + off.x) * tspr->xrepeat,
(float)((tsiz.y >> 1) + off.y) * tspr->yrepeat };