NO THAT IS NOT WHAT YOU DO WITH USELESS CODE

This commit is contained in:
Chris Forbes
2010-05-14 08:16:33 +12:00
parent 43ad339ffe
commit 82c9c12cae
8 changed files with 13 additions and 39 deletions

View File

@@ -157,8 +157,9 @@ namespace OpenRA.FileFormats
{
using (var dataStream = Package.GetContent("map.bin"))
{
//byte version =
ReadByte(dataStream);
if (ReadByte(dataStream) != 1)
throw new InvalidDataException("Unknown binary map format");
// Load header info
var width = ReadWord(dataStream);
var height = ReadWord(dataStream);