Handle level check in texture coordinate calculation

This commit is contained in:
Christoph Oelckers 2019-01-29 02:51:06 +01:00
commit f823e57446
6 changed files with 17 additions and 21 deletions

View file

@ -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();
}