Skip to content

Commit 71a7cdc

Browse files
committed
Style fix
1 parent cb2d4d1 commit 71a7cdc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Mappy/MapRenderer/MapRenderer.Core.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ private unsafe void DrawBackgroundTexture() {
7272
var vanillaBgPath = $"{AgentMap.Instance()->SelectedMapBgPath.ToString()}.tex";
7373
var vanillaFgPath = $"{AgentMap.Instance()->SelectedMapPath.ToString()}.tex";
7474

75-
var bgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaBgPath);
76-
var fgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaFgPath);
75+
var moddedBgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaBgPath);
76+
var moddedFgPath = Service.TextureSubstitutionProvider.GetSubstitutedPath(vanillaFgPath);
7777

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

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

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

0 commit comments

Comments
 (0)