Fix texture mapping bug

This commit is contained in:
Magnus Norddahl 2016-11-22 01:59:28 +01:00
parent 7af504df58
commit dacb985878

View file

@ -314,7 +314,7 @@ void PolyWallTextureCoords::CalcU(FTexture *tex, const seg_t *lineseg, const lin
if (!entireSegment) if (!entireSegment)
{ {
lineLength = (lineseg->v2->fPos() - lineseg->v1->fPos()).Length(); lineLength = (lineseg->v2->fPos() - lineseg->v1->fPos()).Length();
lineStart = (lineseg->v1->fPos() - lineseg->v1->fPos()).Length(); lineStart = (lineseg->v1->fPos() - line->v1->fPos()).Length();
} }
int texWidth = tex->GetWidth(); int texWidth = tex->GetWidth();