mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 12:50:52 +00:00
Added support for tall patches
This commit is contained in:
parent
f95c6baa7b
commit
7438c2b8fb
1 changed files with 6 additions and 4 deletions
|
@ -186,7 +186,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
{
|
||||
BinaryReader reader = new BinaryReader(stream);
|
||||
PixelColorBlock pixeldata = null;
|
||||
int y, count, p;
|
||||
int y, read_y, count, p;
|
||||
int[] columns;
|
||||
int dataoffset;
|
||||
|
||||
|
@ -230,9 +230,10 @@ namespace CodeImp.DoomBuilder.IO
|
|||
|
||||
// Read first post start
|
||||
y = reader.ReadByte();
|
||||
|
||||
read_y = y;
|
||||
|
||||
// Continue while not end of column reached
|
||||
while(y < 255)
|
||||
while(read_y < 255)
|
||||
{
|
||||
// Read number of pixels in post
|
||||
count = reader.ReadByte();
|
||||
|
@ -254,7 +255,8 @@ namespace CodeImp.DoomBuilder.IO
|
|||
stream.Seek(1, SeekOrigin.Current);
|
||||
|
||||
// Read next post start
|
||||
y = reader.ReadByte();
|
||||
read_y = reader.ReadByte();
|
||||
if(read_y < y) y += read_y; else y = read_y;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue