From 289cae92180213436f955ea0fa6750dacf5e1fd0 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 14 Feb 2016 23:12:11 +0400 Subject: [PATCH] (CgFormat): changed interpretation of the signature byte. --- ArcFormats/AnimeGameSystem/ImageAinos.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/AnimeGameSystem/ImageAinos.cs b/ArcFormats/AnimeGameSystem/ImageAinos.cs index 19beb0e3..5588d4b1 100644 --- a/ArcFormats/AnimeGameSystem/ImageAinos.cs +++ b/ArcFormats/AnimeGameSystem/ImageAinos.cs @@ -214,7 +214,7 @@ namespace GameRes.Formats.Ags BPP = 24, Type = sig, }; - if (0 != (sig & 0xf)) + if (0 != (sig & 7)) { meta.OffsetX = input.ReadInt16(); meta.OffsetY = input.ReadInt16(); @@ -266,7 +266,7 @@ namespace GameRes.Formats.Ags m_input = new BinaryReader (file, Encoding.ASCII, true); ShiftTable = InitShiftTable(); - if (0 != (info.Type & 0xf)) + if (0 != (info.Type & 7)) file.Position = 13; else file.Position = 5;