Skip to content

Commit

Permalink
pre release
Browse files Browse the repository at this point in the history
  • Loading branch information
barncastle committed Apr 15, 2018
1 parent f62fd22 commit 44a9a3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions WDBXEditor/Common/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace WDBXEditor.Common
{
public static class Constants
{
public const string VERSION = "1.1.7.a";
public const string VERSION = "1.1.8";
public const string AUTO_GENERATED = "AutoGenerated";
public const StringComparison IGNORECASE = StringComparison.CurrentCultureIgnoreCase;
public static readonly string DEFINITION_DIR = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Definitions/");
Expand Down Expand Up @@ -69,7 +69,8 @@ public enum CompressionType
Immediate = 1,
Sparse = 2,
Pallet = 3,
PalletArray = 4
PalletArray = 4,
SignedImmediate = 5
}

public enum Expansion
Expand Down
6 changes: 3 additions & 3 deletions WDBXEditor/Definitions/Cata 4.3.4 (15595).xml
Original file line number Diff line number Diff line change
Expand Up @@ -612,14 +612,14 @@
<Field Name="Field20" Type="int" />
<Field Name="Field21" Type="int" />
<Field Name="Field22" Type="int" />
<Field Name="Field23" Type="int" />
<Field Name="Field24" Type="int" />
<Field Name="Field23" Type="float" />
<Field Name="Field24" Type="float" />
<Field Name="Field25" Type="int" />
<Field Name="Field26" Type="int" />
<Field Name="Field27" Type="int" />
<Field Name="Field28" Type="int" />
<Field Name="Field29" Type="int" />
<Field Name="Field30" Type="int" />
<Field Name="Field30" Type="float" />
</Table>
<Table Name="CreatureMovementInfo" Build="15595">
<Field Name="ID" Type="int" IsIndex="true" />
Expand Down
2 changes: 2 additions & 0 deletions WDBXEditor/Reader/FileTypes/WDC1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public override void ReadHeader(ref BinaryReader dbReader, string signature)
break;

case CompressionType.Immediate:
case CompressionType.SignedImmediate:
if (!HasIndexTable && f == IdIndex)
{
idOffset = data.Count;
Expand Down Expand Up @@ -620,6 +621,7 @@ public virtual void WriteData(BinaryWriter bw, DBEntry entry)
break;

case CompressionType.Immediate:
case CompressionType.SignedImmediate:
bitStream.WriteBits(data[0], bitWidth);
break;

Expand Down
2 changes: 2 additions & 0 deletions WDBXEditor/Reader/FileTypes/WDC2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ public override void ReadHeader(ref BinaryReader dbReader, string signature)
break;

case CompressionType.Immediate:
case CompressionType.SignedImmediate:
if (!HasIndexTable && f == IdIndex)
{
idOffset = data.Count;
Expand Down Expand Up @@ -586,6 +587,7 @@ public override void WriteData(BinaryWriter bw, DBEntry entry)
break;

case CompressionType.Immediate:
case CompressionType.SignedImmediate:
bitStream.WriteBits(data[0], bitWidth);
break;

Expand Down

0 comments on commit 44a9a3b

Please sign in to comment.