Fix texture mapping bug

This commit is contained in:
Magnus Norddahl 2016-11-22 01:59:28 +01:00
parent 7af504df58
commit dacb985878
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ void PolyWallTextureCoords::CalcU(FTexture *tex, const seg_t *lineseg, const lin
if (!entireSegment)
{
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();