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
|
|
@ -870,7 +870,7 @@ float FTexCoordInfo::TextureAdjustWidth() const
|
|||
//
|
||||
//===========================================================================
|
||||
|
||||
void FTexCoordInfo::GetFromTexture(FTexture *tex, float x, float y)
|
||||
void FTexCoordInfo::GetFromTexture(FTexture *tex, float x, float y, bool forceworldpanning)
|
||||
{
|
||||
if (x == 1.f)
|
||||
{
|
||||
|
|
@ -904,7 +904,7 @@ void FTexCoordInfo::GetFromTexture(FTexture *tex, float x, float y)
|
|||
mScale.Y = -mScale.Y;
|
||||
mRenderHeight = -mRenderHeight;
|
||||
}
|
||||
mWorldPanning = tex->bWorldPanning || (level.flags3 & LEVEL3_FORCEWORLDPANNING);
|
||||
mWorldPanning = tex->bWorldPanning || forceworldpanning;
|
||||
mWidth = tex->GetWidth();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue