Ignore texture patch negative vertical offset (#544)

https://doomwiki.org/wiki/Vertical_offsets_are_ignored_in_texture_patches

BIGDOOR7 & STEP2 in doom.wad and doom2.wad contain
negative Y-offsets some a patch but instead the
renderer defaults to Y-offset value of 0.

This stops UDB's 3D visual mode from using the
negative value - change it to 0 to match the game
renderer. (G)ZDoom behaves the same as vanilla.
This commit is contained in:
Derek MacDonald 2021-04-06 15:16:50 -04:00 committed by GitHub
parent f693959df4
commit bef514fabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ namespace CodeImp.DoomBuilder.Data
// Initialize
this.LumpName = lumpname;
this.X = x;
this.Y = y;
this.Y = y < 0 ? 0 : y;
this.FlipX = false;
this.FlipY = false;
this.Rotate = 0;