Skip to content

Commit

Permalink
Load correct skybox for some maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeeynamo committed Jun 3, 2020
1 parent aedc26d commit 56a3015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenKh.Game/States/MapState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ private void LoadMap(int worldIndex, int placeIndex)
fileName = $"map/{_kernel.Language}/{Constants.WorldIds[worldIndex]}{placeIndex:D02}.map";

_archiveManager.LoadArchive(fileName);
AddMesh(FromMdlx(_graphics.GraphicsDevice, _archiveManager, "MAP", "MAP"));
AddMesh(FromMdlx(_graphics.GraphicsDevice, _archiveManager, "SK0", "SK0"));
AddMesh(FromMdlx(_graphics.GraphicsDevice, _archiveManager, "SK1", "SK1"));
AddMesh(FromMdlx(_graphics.GraphicsDevice, _archiveManager, "MAP", "MAP"));
}

private static Mesh FromMdlx(
Expand Down

0 comments on commit 56a3015

Please sign in to comment.