Fix texturefrac out of bounds bug

This commit is contained in:
Magnus Norddahl 2016-10-29 08:11:12 +02:00
parent 837ed7bd80
commit 87ea75169e
1 changed files with 3 additions and 3 deletions

View File

@ -258,8 +258,8 @@ void R_DrawMaskedColumn (const BYTE *column, const FTexture::Span *span, bool us
const int top = span->TopOffset; const int top = span->TopOffset;
// calculate unclipped screen coordinates for post // calculate unclipped screen coordinates for post
dc_yl = (int)(sprtopscreen + spryscale * top); dc_yl = (int)(sprtopscreen + spryscale * top + 0.5);
dc_yh = (int)(sprtopscreen + spryscale * (top + length)) - 1; dc_yh = (int)(sprtopscreen + spryscale * (top + length) + 0.5) - 1;
if (sprflipvert) if (sprflipvert)
{ {