Skip to content

Commit

Permalink
- fixed incorrect alignment of scaled world panned textures combined …
Browse files Browse the repository at this point in the history
…with per-sidedef scaling in the hardware renderer

This particular case incorrectly factored in the sidedef's scaling factor for how to calculate the offset.
Fortunately this is a very rare case - a quick check yielded no maps depending on it.
Should any map surface that depends on this bug a compatibility option may be needed but it doesn't seem likely that this may be the case.
  • Loading branch information
coelckers committed Dec 14, 2018
1 parent 4a83f4d commit f373752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textures/texture.cpp
Expand Up @@ -1576,7 +1576,7 @@ float FTexCoordInfo::RowOffset(float rowoffset) const
}
else
{
if (mWorldPanning) return rowoffset / tscale;
if (mWorldPanning) return rowoffset;
else return rowoffset / scale;
}
}
Expand All @@ -1598,7 +1598,7 @@ float FTexCoordInfo::TextureOffset(float textureoffset) const
}
else
{
if (mWorldPanning) return textureoffset / tscale;
if (mWorldPanning) return textureoffset;
else return textureoffset / scale;
}
}
Expand Down

0 comments on commit f373752

Please sign in to comment.