Visual Mode: fixed a problem where offsetting the middle texture of double sided lines would not work under certain circumstances. Fixes #702

This commit is contained in:
biwa 2022-02-08 19:07:02 +01:00
parent f86c52c021
commit e0bd927450

View file

@ -381,7 +381,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. Don't clamp offsetY of clipped mid textures
bool dontClamp = (!textureloaded || (!Sidedef.IsFlagSet("wrapmidtex") && !Sidedef.Line.IsFlagSet("wrapmidtex")));
Sidedef.Fields["offsety_mid"] = new UniValue(UniversalType.Float, GetNewTexutreOffset(oldy, offsety, dontClamp ? -1 : Texture.Height)); // biwa
Sidedef.Fields["offsety_mid"] = new UniValue(UniversalType.Float, GetNewTexutreOffset(oldy, offsety, dontClamp ? double.MaxValue : Texture.Height)); // biwa
}
protected override Point GetTextureOffset()