Fixed: tall patches higher than 508 pixels were read incorrectly.

This commit is contained in:
MaxED 2013-04-12 12:53:26 +00:00
parent 4fe2676e11
commit 50c004bb2c

View file

@ -252,7 +252,7 @@ namespace CodeImp.DoomBuilder.IO
// Read next post start
read_y = reader.ReadByte();
if(read_y < y) y += read_y; else y = read_y;
if(read_y < y || (height > 255 && read_y == y)) y += read_y; else y = read_y; //mxd. Fix for tall patches higher than 508 pixels
}
}