mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Fixed texture alignment wrapping to work only for the alignment axis.
This commit is contained in:
parent
6eb77d0bc0
commit
13a47b93df
1 changed files with 4 additions and 4 deletions
|
@ -1585,8 +1585,8 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
// NOTE: We don't use ScaledWidth here because the texture offset is in pixels, not mappixels
|
||||
if(texture.IsImageLoaded)
|
||||
{
|
||||
j.sidedef.OffsetX %= texture.Width;
|
||||
j.sidedef.OffsetY %= texture.Height;
|
||||
if(alignx) j.sidedef.OffsetX %= texture.Width;
|
||||
if(aligny) j.sidedef.OffsetY %= texture.Height;
|
||||
}
|
||||
|
||||
// Add sidedefs forward (connected to the right vertex)
|
||||
|
@ -1612,8 +1612,8 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
// NOTE: We don't use ScaledWidth here because the texture offset is in pixels, not mappixels
|
||||
if(texture.IsImageLoaded)
|
||||
{
|
||||
j.sidedef.OffsetX %= texture.Width;
|
||||
j.sidedef.OffsetY %= texture.Height;
|
||||
if(alignx) j.sidedef.OffsetX %= texture.Width;
|
||||
if(aligny) j.sidedef.OffsetY %= texture.Height;
|
||||
}
|
||||
|
||||
// Add sidedefs backward (connected to the left vertex)
|
||||
|
|
Loading…
Reference in a new issue