X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_menu.pas;h=11dd664dd078e80d4103dc8bed63e66d190ade31;hb=9158232a5a7a8915e2d74eed386dacd01c7addd6;hp=d808bf3bdc446bef705d698b86ea094b74892a6d;hpb=c7827dd408b445f025117f2c5df2a3c0f4622298;p=d2df-sdl.git diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index d808bf3..11dd664 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; @@ -1870,7 +1873,7 @@ begin with TGUIListBox(menu.GetControl('lsResolution')) do begin - list := sys_GetDispalyModes(gBPP); + list := sys_GetDisplayModes(gBPP); if list <> nil then begin Items := list;