Skip to content

Commit

Permalink
Search untranslated map name when loading preview (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
SadPencil authored Jan 8, 2025
1 parent bae3855 commit 741dfa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DXMainClient/DXGUI/Multiplayer/GameInformationPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void SetInfo(GenericHostedGame game)

if (mapLoader != null)
{
mapTexture = mapLoader.GameModeMaps.Find(m => m.Map.Name == game.Map && m.Map.IsPreviewTextureCached())?.Map?.LoadPreviewTexture();
mapTexture = mapLoader.GameModeMaps.Find(m => m.Map.UntranslatedName.Equals(game.Map, StringComparison.InvariantCultureIgnoreCase) && m.Map.IsPreviewTextureCached())?.Map?.LoadPreviewTexture();
if (mapTexture == null && noMapPreviewTexture != null)
{
Debug.Assert(!noMapPreviewTexture.IsDisposed, "noMapPreviewTexture should not be disposed.");
Expand Down

0 comments on commit 741dfa3

Please sign in to comment.