X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_menu.pas;h=aca1dbf59939c6b399c083399728e2396f1f7daf;hb=2c71e272b5c3e4c7895578cf1e881df72012ecd5;hp=a84251949474de22ad1a163b41c767f5eb2d52e0;hpb=48fa53d341e432475432901a339f1ae81fda7809;p=d2df-sdl.git diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index a842519..aca1dbf 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -47,7 +47,8 @@ uses e_log, SysUtils, CONFIG, g_playermodel, DateUtils, MAPDEF, wadreader, Math, g_saveload, e_texture, GL, GLExt, g_language, - g_net, g_netmsg, g_netmaster, g_items, e_input; + g_net, g_netmsg, g_netmaster, g_items, e_input, + utils; type TYNCallback = procedure (yes:Boolean); @@ -551,7 +552,7 @@ begin Map := TGUILabel(GetControl('lbMap')).Text; if Map = '' then Exit; - if Pos(':\', Map) = 0 then + if not isWadPath(Map) then Exit; GameMode := TGUISwitch(GetControl('swGameMode')).ItemIndex+1; @@ -611,7 +612,7 @@ begin Map := TGUILabel(GetControl('lbMap')).Text; if Map = '' then Exit; - if Pos(':\', Map) = 0 then + if not isWadPath(Map) then Exit; GameMode := TGUISwitch(GetControl('swGameMode')).ItemIndex+1;