diff --git a/DXMainClient/DXGUI/Multiplayer/GameLobby/GameLobbyBase.cs b/DXMainClient/DXGUI/Multiplayer/GameLobby/GameLobbyBase.cs index a5755570e..196d4a8a0 100644 --- a/DXMainClient/DXGUI/Multiplayer/GameLobby/GameLobbyBase.cs +++ b/DXMainClient/DXGUI/Multiplayer/GameLobby/GameLobbyBase.cs @@ -1593,6 +1593,11 @@ private void WriteMap(PlayerHouseInfo[] houseInfos) IniFile mpGlobalCodeIni = new IniFile(SafePath.CombineFilePath(ProgramConstants.GamePath, "INI", "Map Code", "MultiplayerGlobalCode.ini")); MapCodeHelper.ApplyMapCode(mapIni, mpGlobalCodeIni); } + else + { + string mapIniFileName = Path.GetFileName(mapIni.FileName); + mapIni.SetStringValue("Basic", "OriginalFilename", mapIniFileName); + } foreach (GameLobbyCheckBox checkBox in CheckBoxes) checkBox.ApplyMapCode(mapIni, GameMode); @@ -1601,9 +1606,7 @@ private void WriteMap(PlayerHouseInfo[] houseInfos) dropDown.ApplyMapCode(mapIni, GameMode); mapIni.MoveSectionToFirst("MultiplayerDialogSettings"); // Required by YR - - string mapIniFileName = Path.GetFileName(mapIni.FileName); - mapIni.SetStringValue("Basic", "OriginalFilename", mapIniFileName); + CopySupplementalMapFiles(mapIni); ManipulateStartingLocations(mapIni, houseInfos);