Prefer ReadUInt8 over ReadByte.
The former will throw when the end of the stream is reached, rather than requiring the caller to check for -1.
This commit is contained in:
@@ -73,7 +73,7 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders
|
||||
|
||||
public class ShpTDSprite
|
||||
{
|
||||
enum Format { XORPrev = 0x20, XORLCW = 0x40, LCW = 0x80 }
|
||||
enum Format : ushort { XORPrev = 0x20, XORLCW = 0x40, LCW = 0x80 }
|
||||
|
||||
sealed class ImageHeader : ISpriteFrame
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user