mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-27 06:02:18 +00:00
Fix texture mapping bug
This commit is contained in:
parent
7af504df58
commit
dacb985878
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue