Handle level check in texture coordinate calculation
This commit is contained in:
parent
473892dede
commit
f823e57446
6 changed files with 17 additions and 21 deletions
|
|
@ -236,7 +236,7 @@ bool P_GetMidTexturePosition(const line_t *line, int sideno, double *ptextop, do
|
|||
FTexCoordInfo tci;
|
||||
|
||||
// We only need the vertical positioning info here.
|
||||
tci.GetFromTexture(tex, 1., (float)side->GetTextureYScale(side_t::mid));
|
||||
tci.GetFromTexture(tex, 1., (float)side->GetTextureYScale(side_t::mid), !!(line->GetLevel()->flags3 & LEVEL3_FORCEWORLDPANNING));
|
||||
double y_offset = tci.RowOffset((float)side->GetTextureYOffset(side_t::mid));
|
||||
double textureheight = tci.mRenderHeight;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue