Skip to content

Commit

Permalink
Map order fix from CUO/broberson
Browse files Browse the repository at this point in the history
  • Loading branch information
bittiez committed Feb 24, 2024
1 parent 4f4c20c commit 5938841
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ClassicUO.Assets/MultiMapLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ public override Task Load()
{
_file = new UOFile(path, true);
}
var facetFiles = Directory.GetFiles(UOFileManager.BasePath, "*.mul", SearchOption.TopDirectoryOnly)
.Select(s => Regex.Match(s, "facet0.*\\.mul", RegexOptions.IgnoreCase))
.Where(s => s.Success)
.Select(s => Path.Combine(UOFileManager.BasePath, s.Value))
.OrderBy(s => s)
.ToArray();
_facets = new UOFileMul[facetFiles.Length];
Expand Down Expand Up @@ -152,7 +153,7 @@ int endy
while (_file.Position < _file.Length)
{
byte pic = _file.ReadByte();
byte size = (byte) (pic & 0x7F);
byte size = (byte)(pic & 0x7F);
bool colored = (pic & 0x80) != 0;

int currentHeight = y * pheight;
Expand Down

0 comments on commit 5938841

Please sign in to comment.