diff --git a/OpenRa.FileFormats/Dune2ShpReader.cs b/OpenRa.FileFormats/Dune2ShpReader.cs index f829aec345..1afb8d009c 100644 --- a/OpenRa.FileFormats/Dune2ShpReader.cs +++ b/OpenRa.FileFormats/Dune2ShpReader.cs @@ -1,4 +1,4 @@ -#region Copyright & License Information +#region Copyright & License Information /* * Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford. * This file is part of OpenRA. @@ -59,7 +59,7 @@ namespace OpenRa.FileFormats Flags == Dune2ImageFlags.L16_F80_F2_2 || Flags == Dune2ImageFlags.Ln_F80_F2) { - int n = Flags == Dune2ImageFlags.Ln_F80_F2 ? reader.ReadByte() : 16; + int n = Flags == Dune2ImageFlags.Ln_F80_F2 ? reader.ReadByte() : (byte)16; LookupTable = new byte[n]; for (int i = 0; i < n; i++) LookupTable[i] = reader.ReadByte(); diff --git a/OpenRa.FileFormats/Makefile b/OpenRa.FileFormats/Makefile new file mode 100644 index 0000000000..4d2e853fc5 --- /dev/null +++ b/OpenRa.FileFormats/Makefile @@ -0,0 +1,19 @@ +CSC = gmcs +CFLAGS = -nologo -warn:4 -debug:+ -debug:full -optimize- -codepage:utf8 -unsafe +DEFINE = DEBUG;TRACE +PROGRAM = OpenRa.FileFormats.dll +LIBS = System.dll \ + System.Core.dll \ + System.Drawing.dll \ + System.Xml.dll +TYPE = library +DIRS = . \ + Support \ + Collections \ + Properties + +refs := $(foreach ref, $(LIBS),-r:$(ref)) +files := $(foreach dir, $(DIRS),$(wildcard $(dir)/*.cs)) + +$(PROGRAM) : + $(CSC) $(refs) "-out:$(PROGRAM)" $(CFLAGS) "-define:$(DEFINE)" -t:$(TYPE) $(files)