Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MidoriKami committed Aug 16, 2024
1 parent cb2d4d1 commit 71a7cdc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Mappy/MapRenderer/MapRenderer.Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ private unsafe void DrawBackgroundTexture() {
var vanillaBgPath = $"{AgentMap.Instance()->SelectedMapBgPath.ToString()}.tex";
var vanillaFgPath = $"{AgentMap.Instance()->SelectedMapPath.ToString()}.tex";

var bgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaBgPath);
var fgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaFgPath);
var moddedBgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaBgPath);
var moddedFgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaFgPath);

var bgFile = Path.IsPathRooted(bgPath) ?
Service.DataManager.GameData.GetFileFromDisk<TexFile>(bgPath) :
Service.DataManager.GetFile<TexFile>($"{AgentMap.Instance()->SelectedMapBgPath.ToString()}.tex");
var bgFile = Path.IsPathRooted(moddedBgPath) ?
Service.DataManager.GameData.GetFileFromDisk<TexFile>(moddedBgPath) :
Service.DataManager.GetFile<TexFile>(vanillaBgPath);

var fgFile = Path.IsPathRooted(fgPath) ?
Service.DataManager.GameData.GetFileFromDisk<TexFile>(fgPath) :
Service.DataManager.GetFile<TexFile>($"{AgentMap.Instance()->SelectedMapPath.ToString()}.tex");
var fgFile = Path.IsPathRooted(moddedFgPath) ?
Service.DataManager.GameData.GetFileFromDisk<TexFile>(moddedFgPath) :
Service.DataManager.GetFile<TexFile>(vanillaFgPath);

if (bgFile is null || fgFile is null) {
Service.Log.Warning("Failed to load map textures");
Expand Down

0 comments on commit 71a7cdc

Please sign in to comment.