Skip to content

Commit

Permalink
Fix write top effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mignari committed Mar 23, 2018
1 parent e85e0e9 commit 22425f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Scripts
release/
debug/
packages/

# Visual studio intermediate directories
bin/
Expand Down
10 changes: 5 additions & 5 deletions OpenTibia/OpenTibia.Client/Things/ThingTypeSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,6 @@ private static bool WriteProperties_1010_1093(ThingType thing, FlagsBinaryWriter
}
}

if (format >= DatFormat.Format_1093 && thing.IsTopEffect)
{
writer.Write(DatFlags1010.TopEffect);
}

if (thing.Usable)
{
writer.Write(DatFlags1010.Usable);
Expand All @@ -659,6 +654,11 @@ private static bool WriteProperties_1010_1093(ThingType thing, FlagsBinaryWriter
writer.Write(thing.OffsetY);
}

if (thing.IsTopEffect && format >= DatFormat.Format_1093)
{
writer.Write(DatFlags1010.TopEffect);
}

// close flags
writer.Write(DatFlags1010.LastFlag);
return true;
Expand Down
4 changes: 2 additions & 2 deletions OpenTibia/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.6.2.0")]
[assembly: AssemblyFileVersion("0.6.2.0")]
[assembly: AssemblyVersion("0.6.3.0")]
[assembly: AssemblyFileVersion("0.6.3.0")]

0 comments on commit 22425f2

Please sign in to comment.