Looks like first 3 bytes of JPG image can be treated as signature, not 4.

This commit is contained in:
MaxED 2013-04-12 11:06:57 +00:00
parent a150931bb2
commit 4fe2676e11
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ namespace CodeImp.DoomBuilder.Data
private static readonly int[] GIF_SIGNATURE = new int[] { 71, 73, 70 };
private static readonly int[] BMP_SIGNATURE = new int[] { 66, 77 };
private static readonly int[] DDS_SIGNATURE = new int[] { 68, 68, 83, 32 };
private static readonly int[] JPG_SIGNATURE = new int[] { 255, 216, 255, 224 }; //mxd
private static readonly int[] JPG_SIGNATURE = new int[] { 255, 216, 255 }; //mxd
private static readonly int[] TGA_SIGNATURE = new int[] { 0, 0, 2, 0 }; //mxd
private static readonly int[] PCX_SIGNATURE = new int[] { 10, 5, 1, 8 }; //mxd

View file

@ -140,7 +140,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.ClassicModes
string word = adjectives[points.Count % adjectives.Length];
word = (points.Count > adjectives.Length) ? "very " + word : word;
string a = ((word[0] == 'a') || (word[0] == 'e') || (word[0] == 'o')) ? "an " : "a ";
General.Interface.DisplayStatus(StatusType.Action, "Created " + a + word + " drawing.");
General.Interface.DisplayStatus(StatusType.Action, "Created " + a + word + " curve.");
List<DrawnVertex> verts = new List<DrawnVertex>();