X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_menu.pas;h=72a5c8ceeb16317cfbaf60d737cd667dcb8726d1;hp=d808bf3bdc446bef705d698b86ea094b74892a6d;hb=a959696d242bc66e6890d281eb6e5d627c2588e9;hpb=93f620df25ad634372657a64d609dcaf44e718bd diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index d808bf3..72a5c8c 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -860,6 +860,7 @@ begin WAD := TGUIFileListBox(GetControl('lsWAD')).SelectedItem(); TwoPlayers := TGUISwitch(GetControl('swPlayers')).ItemIndex = 1; end; + WAD := e_FindWadRel(MegawadDirs, WAD); if TwoPlayers then n := 2 @@ -1357,6 +1358,8 @@ begin if (wad = '') or (map = '') then Exit; + wad := e_FindWadRel(MapDirs, WAD); + res := wad+':\'+map; TGUILabel(TGUIMenu(g_GUI_GetWindow('CustomGameMenu').GetControl('mCustomGameMenu')).GetControl('lbMap')).Text := res;